cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
char
char
May 28, 2016 at 11:16am UTC
looky
(8)
Hi
I cannot grasp how to use char would someone be kind enough to show me some examples and thanks so much for all passed responses.
char g;
g = 23;
std :: cout << g << endl;
I am getting a character change to cout for example u becomes y??
May 28, 2016 at 11:36am UTC
chicofeo
(640)
The below link may help.
http://www.cplusplus.com/doc/tutorial/ntcs/
May 28, 2016 at 6:55pm UTC
AbstractionAnon
(6954)
It also helps to understand the ASCII code chart.
http://www.asciitable.com/
g = 23;
assigns the decimal value 23 to the
char
variable g. Values less than 32 (space) are non-printable. Your OS may or may not have a display representation for a char with a value of 23.
Topic archived. No new replies allowed.