post  ASCII code

pamela (2)   Link to this post
How can I write James Grier using ASCII code
helios (4790)   Link to this post
"James Grier"
Done.
zoldri (34)   Link to this post
do u mean putting the number for each character?
mahlerfive (119)   Link to this post
www.asciitable.com

If you have the ascii code of a character stored in an integer, say 97, then if you convert it to char, it will become the character associated with that ascii code.

1
2
3
int ascii = 97;
char letter = (char)ascii;
cout >> letter;
zoldri (34)   Link to this post
you could just do
1
2
3
char name[12] = {74,65,77...};
    
cout << name;
giantMidget (14)   Link to this post
"James Grier"
Done.

lmao
firedraco (2048)   Link to this post
I think helios wins the prize.

This topic is archived - New replies not allowed.