
Beginning Visual C++ 2005 (2006) [eng]-1
.pdf


A
C++ Keywords
Keywords have been assigned special significance within the C++ language, so you must not use them as names within your programs. The Visual C++ 2005 compiler compiles programs written in ISO/ANSI C++ and programs written for the CLR that conform to the C++/CLI specification, so the compiler recognizes the set of keywords defined by ISO/ANSI C++ as well as the additional set of keywords defined by C++/CLI. Although programming in native C++, you need be concerned only with the ISO/ANSI C++ keywords. When writing programs for the CLR, you need to be aware of both sets of keywords.
ISO/ANSI C++ Keywords
The ISO/ANSI C++ language specification defines the following keywords:
asm |
false |
sizeof |
auto |
float |
static |
bool |
for |
static_cast |
break |
friend |
struct |
case |
goto |
switch |
catch |
if |
template |
char |
inline |
this |
class |
int |
throw |
const |
long |
true |
const_cast |
mutable |
try |
continue |
namespace |
typedef |
|
|
|
Table continued on following page


B
ASCII Codes
The first 32 ASCII (American Standard Code for Information Interchange) characters provide control functions. In the following table, only the first 128 ASCII characters have been included. The remaining 128 characters include further special symbols and letters for national character sets, so there are many varieties of these to suit a wide range of language contexts.
Decimal |
Hexadecimal |
Character |
Control |
|
|
|
|
000 |
00 |
null |
NUL |
001 |
01 |
J |
SOH |
002 |
02 |
• |
STX |
003 |
03 |
♥ |
ETX |
004 |
04 |
♦ |
EOT |
005 |
05 |
♣ |
ENQ |
006 |
06 |
♠ |
ACK |
007 |
07 |
• |
BEL (Audible bell) |
008 |
08 |
|
Backspace |
009 |
09 |
|
HT |
010 |
0A |
|
LF (Line feed) |
011 |
0B |
|
VT (Vertical tab) |
012 |
0C |
|
FF (Form feed) |
013 |
0D |
|
CR (Carriage return) |
014 |
0E |
|
SO |
015 |
0F |
¤ |
SI |
|
|
|
|
Table continued on following page




