is there a C++ equivalent to the VB Chr()/Asc() functions?
Printable View
is there a C++ equivalent to the VB Chr()/Asc() functions?
It's not needed.
is just the same asCode:char c = 'a';
As far as the computer is concerned, characters don't exist, it's all just numbers. You can enclose a character in single quotes ( ' ) to get the code for that character. A character is just an 8-bit integer, though.Code:char c = 97;
cool, thanks Harry :D You saved my life! Well, not really, since I'm just practicing, but your help is much appreciated anyway...:D
No problem :rolleyes: