2. 语言元素
语言元素组成,运算符,变量,常量,注释和标点保留字。这些形式的组合方案的语法。
2.1. 字符
的字符,可用于该语言的语法。
-
abcdefghijklmnopqrstu vwxyz
-
ABCDEFGHIJKLMNOPQRSTU VWXYZ
-
0 1 2 3 4 5 6 7 8 9
-
+ - * / = ( ) { } [ ] < > ' ” ! @ - / ^ & % _ : . , ; ? |
- 空间和制表符
以字符的组合可以是标识符代表等名称的变量,常量 。这些必须以小写字母,大写字母或低的重点。长度可以从一个到几个字符,不允许空格或特殊字符。要删除处理由两个词,你可以使用低杠。
N, i, con
K456, var45
Dato_entrada, precio_producto
在 C + +是如此敏感的两个大写字母小写大写或相等的名字是不同的。
Consigna
是不同的consigna
2.2. 保留字
asm and and_eq
auto bitand bitor
bool break case
catch char class
compl 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 not
not_eq operator or
or_eq 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
xor xor_eq