Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Easy noob question - Adding int to char

Author
Message
Ashy
18
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 16th Feb 2008 03:41
Hey guys, how do you do this in C++



My forum search yielded alot of string+char questions or converting an int to use in a gdk function that accepts char (umm.. dbStr() ftw)
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 16th Feb 2008 04:01
You can use sprintf to output formatted data to a string:



Ashy
18
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 16th Feb 2008 04:58
Thanks mate, got it working. You even linked to the cplusplus site lol, that helped alot. Cheers.

Login to post a reply

Server time is: 2024-10-08 11:39:41
Your offset time is: 2024-10-08 11:39:41