标题:怎么用共用体
取消只看楼主
新人学习
Rank: 3Rank: 3
等 级:论坛游侠
威 望:1
帖 子:145
专家分:187
注 册:2017-10-26
结帖率:66.67%
 问题点数:0 回复次数:0 
怎么用共用体
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



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-483353-1-1.html




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

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