| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1089 人关注过本帖
标题:怎么用共用体
只看楼主 加入收藏
新人学习
Rank: 3Rank: 3
等 级:论坛游侠
威 望:1
帖 子:145
专家分:187
注 册:2017-10-26
结帖率:66.67%
收藏
 问题点数:0 回复次数:1 
怎么用共用体
Compiling...
ceshi.cpp
E:\c++\ceshi.cpp(14) : error C2628: 'one' followed by 'int' is illegal (did you forget a ';'?)
E:\c++\ceshi.cpp(24) : error C2440: 'return' : cannot convert from 'const int' to 'union one'
        No constructor could take the source type, or constructor overload resolution was ambiguous
E:\c++\ceshi.cpp(27) : warning C4508: 'main' : function should return a value; 'void' return type assumed
执行 cl.exe 时出错.

为什么是这样呢?
搜索更多相关主题的帖子: 共用体 cpp c++ return type 
2017-12-13 20:42
吹水佬
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:451
帖 子:10539
专家分:42927
注 册:2014-5-20
收藏
得分:0 
代码呢?
2017-12-14 06:26
快速回复:怎么用共用体
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017684 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved