常量全用大写的字母,用下划线分割单词

常量全用大写的字母,用下划线分割单词。 例如: const int MAX = 100; const int MAX_LENGTH = 100;

 

 1 #include <iostream>
 2 
 3 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
 4 using namespace std;
 5 //定义空类empty
 6 class empty
 7 {
 8 };
 9 int main(int argc, char** argv) {
10       empty a,*p;  //编译通过
11     cout<<"Test a empty class."<<endl;
12     return 0;
13 }

 

posted @ 2018-08-03 12:20  borter  阅读(543)  评论(0编辑  收藏  举报