Saturday, September 11, 2010

Từ khóa

Từ khóa trong C++ có thể có một hoặc nhiều từ. Nếu từ khóa có nhiều từ, thì giữa các từ có dấu gạch chân (_). Kí tự trắng và các kí tự đặc biệt không được phép sử dụng trong từ khóa, tên hàm, tên biến. Tên của chúng không được bắt đầu bằng kí tự số.
Bảng từ khóa chuẩn trong C++
asm, auto, bool, break, case, catch, char, class, const, const_cast, continue, default, delete, do, double, dynamic_cast, else, enum, explicit, export, extern, false, float, for, friend, goto, if, inline, int ,long, mutable, namespace, new, operator, private, protected, public, register, reinterpret_cast, return, short, signed, sizeof, static, static_cast, struct, switch, template, this, throw, true, try, typedef, typeid, typename, union, unsigned, using, virtual, void, volatile, wchar_t, while
Bảng từ khóa bổ sung trong C++
and, and_eq, bitand, bitor, compl, not, not_eq, or, or_eq, xor, xor_eq

No comments:

Post a Comment

Popular Posts