This appendix presents ASCII codes according to decimal value, hexadecimal value, and corresponding character. Hexadecimal codes can be used to embed values into a string. You can also print characters by using a (char) cast. For example:
cout << "Hex code 7e is " << "\x7e" << endl;// Print ASCII codes from 32 to 42.for (int i = 32; i <= 42; i++) cout << i << ": " << (char) i << endl;
Some nonprintable characters have special meanings:
NUL: null value
ACK: acknowledgment signal (used in network communications) ...