title: C++ Assigning int into char* array
body: <p>Sorry if this has been asked before, but I couldn't find anything that helped my situation.
  I'm trying to assign an integer to an index in a char array. In this case, assigning 33 into an index of the token array.</p>
  
  <pre><code>char token[100];
  int num = 33;
  //Assigning num to this place in array
  token[1] = num; //How do I make this work?
  </code></pre>
  
  <p>I want 33 to be an index in the token array, yet when I assign it and print it out it gives me '!', which is the ASCII value for 33. I want to convert the num to a string and then assign it to the index. So how would I convert num to a string and then assign it to the token array? </p>