Weitzel
02-02-02, 06:18 PM
Hi... I know there are better boards for this but I was hoping someone out there would immediately recognize the fix for this. I'm a student and the assignment is due Wednesday so the sooner the better =)
In C++, I have:
int score;
char str[50];
itoa(score, str, 10);
I'm trying to convert my integer "score" into a string - I figured itoa was the best way. It worked fine in Visual C++ but now that I'm compiling at school on a Unix machine, it gives me the error:
implicit declaration of function 'int atoi(...)'
How do I use atoi "explicitly"??? Thanks!
In C++, I have:
int score;
char str[50];
itoa(score, str, 10);
I'm trying to convert my integer "score" into a string - I figured itoa was the best way. It worked fine in Visual C++ but now that I'm compiling at school on a Unix machine, it gives me the error:
implicit declaration of function 'int atoi(...)'
How do I use atoi "explicitly"??? Thanks!