常量全用大写的字母,用下划线分割单词。 例如: 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 }

 

相关文章:

  • 2022-03-04
  • 2021-12-06
  • 2021-06-03
  • 2021-12-17
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
  • 2021-12-31
相关资源
相似解决方案