c++ 枚举简单举例
2024-09-06 07:55:33
#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
最新文章
- XSS分析及预防
- rabbitmq启动异常之error,{not_a_dets_file recovery.dets
- IText&;Html2canvas js截图 绘制 导出PDF
- ajax原理,验证码生成原理
- Android studio 添加依赖
- Sqoop2入门之导入关系型数据库数据到HDFS上
- cocos2dx的图片载入
- angular的post请求,SpringMVC后台接收不到参数值的解决方案
- 对比AppScan Source和Fortify扫描AltoroJ的结果
- 在 Windows 下远程桌面连接 Linux - XManager 篇
- hihoCoder #1078 : 线段树的区间修改(线段树区间更新板子题)
- git报错
- java testng框架的windows自动化-自动运行testng程序下篇
- vue轮播,vue-awesome-swiper动态数据渲染,loop无效,轮循无效
- web全栈架构师[笔记] — 01 ECMAScript6新特性
- 帝国cms调用相关文章若没有则调取最新文章
- 14.Mysql事务控制和锁定
- Swift语言精要 - 序列化和反序列化
- vue深入了解组件——Prop
- [AIR] AIR程序调用本地默认应用程序打开本地文件
热门文章
- Debug - SpringBoot - Error starting ApplicationContext. To display the auto-configuration report re-runyour application
- 【基础】Linux软件安装方法
- 【LeetCode 1】两数之和
- STM32嵌入式开发学习笔记(四):使用滴答计时器实现精准计时
- xshell突出显示集
- unittest框架学习笔记一之testcase
- 1085 Perfect Sequence (25 分)
- 剑指offer——53字符流中第一个只出现一次的字符
- 剑指offer——45整数中1出现的次数
- Linux中的网络管理——网络配置及命令