Converting Integer to a String based on digits

This problem is really simple.
I want to convert the integer into a string.

1
2
int x = 693; 
char chararr[max];


in my homework, x is unknown. but dont worry, I wont ask for the full code. I just need the part where you change the int into a string/array of char.

I'm thinking in circles from where to start. help?
Last edited on
google std::stringstream.
eh.. sorry mate, I'm still a beginner. I don't know what "std::"s are and I'm not allowed to use them really. sorry
Topic archived. No new replies allowed.