|
From: Brian P. <BP...@go...> - 2001-07-28 21:33:08
|
I must have a different lib because itoa(int) is not defined but itoa(int, char*, int) is?
*
*
*
v
I am not all to familiar with the string class that you are using, but
"filename += number" may not do what you think.
try this instead:
//
string filename = "help";
int number = 0;
filename += itoa(number); // convert int to char before appending it to
string.
cout << "{" << filename << "}" << endl;
//
You will now see that a space is added between filename and number. This
character position is to represent a minus sign if number is negative. Your
string class will probably have a function to get rid of this character.
___________________________________________________
GO.com Mail
Get Your Free, Private E-mail at http://mail.go.com
|