会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
无痕
预则立,不预则废。
管理
2011年11月6日
How to 共用体
摘要: #include int main(){ union Exam{ struct { int x; int y; }in; int a; int b; }e; e.a=1;e.b=2; e.in.x=e.a*e.b; e.in.y=e.a+e.b; printf("%d,%d\n",e.in.x,e.in.y); return 0;}
阅读全文
posted @ 2011-11-06 20:27 谈笑风生膜法师
阅读(140)
评论(0)
推荐(0)