cplusplus.com
C++ : Forum : Beginners : ASCII code
 
cplusplus.com
Information
Documentation
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs


post ASCII code

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

lmao
firedraco (4744)
I think helios wins the prize.
Topic archived. No new replies allowed.