storing variable & char ?

Apr 12, 2009 at 3:22pm
How do i store a variable as char and number? Do I have to use a string?
Apr 12, 2009 at 3:32pm
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
Apr 12, 2009 at 11:28pm
char variableNameHere;
int variableNameHere;

where as a string is:

string variableNameHere;

Use them like variables.
Apr 13, 2009 at 11:39am
okay thank you
Topic archived. No new replies allowed.