The C++ Keywords. McGraw-Hill The Complete Reference Fourth Edition
Διαφήμιση
Διαφήμιση
C h a p t e r 1 1 : A n O v e r v i e w o f C + +
287 a.push(1); b.push(2); a.push(3); b.push(4); cout << a.pop() << " "; cout << a.pop() << " "; cout << b.pop() << " "; cout << b.pop() << "\n";
} return 0;
This program displays the following:
Stack Initialized
Stack Initialized
3 1 4 2
Stack Destroyed
Stack Destroyed
The C++ Keywords
There are 63 keywords currently defined for Standard C++. These are shown in
Table 11-1. Together with the formal C++ syntax, they form the C++ programming language. Also, early versions of C++ defined the overload keyword, but it is obsolete.
Keep in mind that C++ is a case-sensitive language and it requires that all keywords be in lowercase.
asm case const delete else auto catch const_cast do enum
Table 11-1.
The C++ keywords bool char continue double explicit break class default dynamic_cast export
Λήψη
Διαφήμιση