Is there an asc function in VC++?
Printable View
Is there an asc function in VC++?
Nevermind VC does it by itself
char tmp;
int inttemp;
tmp = 'h';
inttemp = tmp;
inttemp would = 104
Check this:
...to dump a string.Code:char *pcStr = "Hello World";
char *p;
for(p = pcStr; *p; p++)
cout << (int)p << " : " << p[0] << endl;
Hmm thanks that works to.