Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3027

Setting char value

$
0
0
All, I have attached a snapshot of the issues I am dealing with.

const char CR = '\13';
const char LF = '\10';

const char CR2 = '\15';
const char LF2 = '\12';

In the locals watch window it shows that the CR value is 11 instead of 13, and my line-feed LF has a value of 8 instead of 10. If I add 2 to the value as CR2 and LF2 show, then the watch windows shows them as 13 and 10.

What am I doing wrong.
C++ Express 2010

Keith
Attached Images
 

Viewing all articles
Browse latest Browse all 3027