博客
关于我
夜光带你走进C#语言 基础版本(43)
阅读量:338 次
发布时间:2019-03-01

本文共 309 字,大约阅读时间需要 1 分钟。

夜光序言:

 

 

买得起自己喜欢的东西,去得了自己想去的地方,不会因为身边人的来或走损失生活的质量,反而会因为花自己的钱,来得更有底气一些,这就是应该努力的原因。

 

 

 

 

 

 

 

 

 

正文:

枚举列表中的每个符号代表一个整数值,一个比它前面的符号大的整数值。

默认情况下,第一个枚举符号的值是 0。但你也可以設定每個符號的值,如果字符 n 你沒有設定值,他的值就是字符 (n-1)+1,舉個例子:比如枚舉字符 g,他的值就是字符 f 的值 +1,但由於 f 的值不知道,他就會去找第(n-1)的值,也就是 e 的值,以此類推,找到了 c 的值 1,e=c+1=2,f=e+1=3,g=f+1=4;

 

默认情况下,第一个枚举符号的值是 0。

 

 

 

 

 

 

 

转载地址:http://ltdo.baihongyu.com/

你可能感兴趣的文章
Nginx+Keepalived实现简单版高可用主备切换
查看>>
nginx+mysql+redis+mongdb+rabbitmq 自动化部署脚本
查看>>
nginx+php的搭建
查看>>
nginx+tomcat+memcached
查看>>
Nginx+Tomcat实现动静分离
查看>>
nginx+Tomcat性能监控
查看>>
nginx+uwsgi+django
查看>>
nginx+vsftp搭建图片服务器
查看>>
Nginx-http-flv-module流媒体服务器搭建+模拟推流+flv.js在前端html和Vue中播放HTTP-FLV视频流
查看>>
nginx-vts + prometheus 监控nginx
查看>>
Nginx/Apache反向代理
查看>>
Nginx: 413 – Request Entity Too Large Error and Solution
查看>>
nginx: [emerg] getpwnam(“www”) failed 错误处理方法
查看>>
nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:
查看>>
nginx:Error ./configure: error: the HTTP rewrite module requires the PCRE library
查看>>
Nginx:objs/Makefile:432: recipe for target ‘objs/src/core/ngx_murmurhash.o‘解决方法
查看>>
Nginx、HAProxy、LVS
查看>>
Nginx下配置codeigniter框架方法
查看>>
Nginx中使用expires指令实现配置浏览器缓存
查看>>
nginx中配置root和alias的区别
查看>>