C++Primer第五版:练习2.12

#include<iostream>

int main()
{
    
    
	int double = 3.14;
	int _;
	int catch - 22;
	int 1_or_2 = 1;
	double Double = 3.14;
}

(a)double是关键字,不能用来做标识符
(b)合法,标识符有字母数字和下划线组成,其中必须以字母或下划线开头
( c)不能有连字符
(d)不能以数字开头
(e)合法

猜你喜欢

转载自blog.csdn.net/Xgggcalled/article/details/108834732