storing variable & char ?

How do i store a variable as char and number? Do I have to use a string?
I'm not sure what exactly your asking, but I can say that chars are numbers in c++, for example you can do arithmetic. Using single quotation marks gives the ascii value
char variableNameHere;
int variableNameHere;

where as a string is:

string variableNameHere;

Use them like variables.
okay thank you
Topic archived. No new replies allowed.