Check char for number or letter/symbol
1 2 3 4 5 6
|
char c;
string input;
cout<<"Enter name: ";
cin>>input;
input.erase(1,input.size());
c = input;
|
what I'm trying to do:
1 2 3 4
|
if (char) c is filled with a number
...
else if (char) c is filled with a letter or symbol
...
|
How do I do this O_o?? Thank You for your time.
Look into ctype.h.
Thanks
Topic archived. No new replies allowed.