| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 621 人关注过本帖
标题:新人求助........
取消只看楼主 加入收藏
罗斯曼丽
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2012-10-24
结帖率:66.67%
收藏
已结贴  问题点数:20 回复次数:3 
新人求助........
图片附件: 游客没有浏览图片的权限,请 登录注册
我的作业.....求指教  错在哪儿???
2012-10-24 22:05
罗斯曼丽
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2012-10-24
收藏
得分:0 
回复 6楼 天剑山
在哪儿加  ()
2012-10-27 21:23
罗斯曼丽
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2012-10-24
收藏
得分:0 
崩溃了.............什么优先等级我们老师就没有提过...............
我改成这样了..............
cout<< ("A:"<<A==0?"不是":"是")<<"罪犯" <<endl;
cout<< ("B:"<<B==0?"不是":"是")<<"罪犯" <<endl;
cout<< ("C:"<<C==0?"不是":"是")<<"罪犯" <<endl;
cout<< ("D:"<<D==0?"不是":"是")<<"罪犯" <<endl;
cout<< ("E:"<<E==0?"不是":"是")<<"罪犯" <<endl;
cout<< ("F:"<<F==0?"不是":"是")<<"罪犯" <<endl;
但是还有错误啊 ...............
E:\作业\p51罪犯\1.cpp(16) : error C2001: newline in constant
E:\作业\p51罪犯\1.cpp(18) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(19) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(20) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(21) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(22) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(23) : error C2296: '<<' : illegal, left operand has type 'char [3]'
2012-10-28 09:05
罗斯曼丽
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2012-10-24
收藏
得分:0 
回复 6楼 天剑山
崩溃了.............什么优先等级我们老师就没有提过...............
我改成这样了..............
cout<< ("A:"<<A==0?"不是":"是")<<"罪犯" <<endl;
cout<< ("B:"<<B==0?"不是":"是")<<"罪犯" <<endl;
cout<< ("C:"<<C==0?"不是":"是")<<"罪犯" <<endl;
cout<< ("D:"<<D==0?"不是":"是")<<"罪犯" <<endl;
cout<< ("E:"<<E==0?"不是":"是")<<"罪犯" <<endl;
cout<< ("F:"<<F==0?"不是":"是")<<"罪犯" <<endl;
但是还有错误啊 ...............
E:\作业\p51罪犯\1.cpp(16) : error C2001: newline in constant
E:\作业\p51罪犯\1.cpp(18) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(19) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(20) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(21) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(22) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(23) : error C2296: '<<' : illegal, left operand has type 'char [3]'
2012-10-28 09:06
快速回复:新人求助........
数据加载中...
 
   



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

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