ASCII code

How can I write James Grier using ASCII code
"James Grier"
Done.
do u mean putting the number for each character?
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;
you could just do
1
2
3
char name[12] = {74,65,77...};
    
cout << name;
"James Grier"
Done.

lmao
I think helios wins the prize.
Topic archived. No new replies allowed.