第一章第二节(c++语言的字符集与词汇)

字符集:
C++语言的字符集是ASCII(American Standard Code for Information Interchange)码的子集, 包括:26个英文字母的大小写,10个数字和其他的字符。
关键字:
又叫做保留字,下面列举出来C++语言中常用的关键字。全部的关键字可以查阅MSDN帮助文档。
array bool break case catch char class const contiue default delete do double else enum extern false float for friend goto if inline int long namespace new nullptr operator private protected public return short sizeof static struct switch template this throw true try typedef typename union unsigned virtual void while
标识符:
关键字不能作为标识符;
大小写敏感;
没有规定的长度
运算符:
分隔符:
常数:
基本类型的常数在程序运行时直接参与运算,不需占用内存单元存储。

猜你喜欢

转载自blog.csdn.net/anyifan369/article/details/86355251