Generating a char using input from user in C++ : <p>I wish to make a char with digits between 0-9. The user decides how many digits to use. 
For example, if the user inputs 4, the char should be 01234.
Please note I cannot use the string data type. I have to use char. 
I know how to generate a string for the same logic but not a char.
So if there is a way to convert string to char, that will work well. I tried</p>

<pre><code>string randomString; //this contains the set of numbers 0-9 on the basis of the users  input 
char charString = randomString;
</code></pre>

<p>This however does not work.</p>
