#include <iostream>
enum  Enumeration{
 VAL1,
 VAL2,
 VAL3=100,
 VAL4
};


int main()
{
    using namespace std;
    cout << "HelloWorld\n";
    cout << VAL1 << endl;
    cout << VAL4 << endl;
    cout << "\n";
    return 0;
}

输出:

HelloWorld
0
101




相关文章:

  • 2021-10-19
  • 2021-11-04
  • 2022-12-23
  • 2021-10-30
  • 2021-04-19
  • 2021-08-10
  • 2021-05-30
猜你喜欢
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案