ok so i want to be able to take an integer break it up and place it into an char*
example: int x = 10
take 10 make it into '1' and '0' and then place those into char*

now i have a method that does this and it looks like this..........buf is a char*
Code:
      std::ostringstream sout;
      sout << x;
      std::string s(sout.str());
      length = s.length(); // Sets length equal to the length of the string
      buf = new char[length];
      const char *sz = s.c_str(); // Sets const char * equal to the string
      buf = (char*) sz; // Casts sz to char* from const char * and sets buf equal
The problem is that iw ould rather now use the string class because unfortunatly im doin an assignment that is basically the string class. So any suggestions through them at me. Thank you