java:
int i = 1;
String s = ""+ i;
c++:
int i = 1;
char temp[10];
snprintf( temp, 10, "%d", i);
string s = temp;
p.s. itoa( int ) is not a ansi c++ function. you cannot find it in linux.
-_-
I need a sign that things are gonna change. I need a reason to go on. - Meredith Grey
No comments:
Post a Comment