会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
byfei
博客园
首页
新随笔
联系
管理
订阅
2011年10月20日
枚举可以直接赋值给int
摘要: #include <iostream>using namespace std;void main(){enum{test1,test2,test3,test4};int i=test4;cout<<i<<endl;getchar();}
阅读全文
posted @ 2011-10-20 10:56 byfei
阅读(936)
评论(0)
推荐(0)
编辑
公告