Larry Nguyen
Researcher, ICNS Lab, Korea ntiendung@gmail.com
Tuesday, March 20, 2012
Linux C++ : Append int to char*
int count = 1;
char name[10] = "out";
char num[2];
sprintf(num, "%d",count);
//int -> char
strcat(name,num);
//out1
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment