| 查看: 1478 | 回复: 19 | |||
| 当前主题已经存档。 | |||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | |||
[交流]
【求助完成】初学C++遇到的问题
|
|||
|
#include void main() { cout<<213.69; cout<<"\101\x42C\n"; cout<<"I say:\"How are you?\"\n"; } 为什么运行后提示error C2022: '1068' : too big for character 执行 cl.exe 时出错. [ Last edited by wangmonk on 2009-6-23 at 21:18 ] |
» 猜你喜欢
球磨粉体时遇到了大的问题,请指教!
已经有15人回复
过年走亲戚时感受到了所开私家车的鄙视链
已经有5人回复
情人节自我反思:在爱情中有过遗憾吗?
已经有5人回复
江汉大学解明教授课题组招博士研究生/博士后
已经有3人回复
★ ★ ★ ★ ★
小木虫(金币+0.5):给个红包,谢谢回帖交流
gwdavid(金币+0,VIP+0):3q 6-7 10:40
gwdavid(金币+4,VIP+0):sorry, forgot BB 6-7 10:40
小木虫(金币+0.5):给个红包,谢谢回帖交流
gwdavid(金币+0,VIP+0):3q 6-7 10:40
gwdavid(金币+4,VIP+0):sorry, forgot BB 6-7 10:40
|
Well, I don't know what you will do here but the octal number following a backslash (\) in a character or string constant is too big to represent a character. If you just want to input sth., you may try: #include void main() { cout<<213.69; cout<<" \101"; cout<<" x42C "; cout<<"\n"<<"I say:\"How are you?\"\n"; } |

12楼2009-06-07 07:05:47
woshilsh
荣誉版主 (职业作家)
- 应助: 43 (小学生)
- 贵宾: 10.33
- 金币: 21115.1
- 散金: 737
- 红花: 22
- 帖子: 3777
- 在线: 639.7小时
- 虫号: 293038
- 注册: 2006-11-04
- 专业: 计算机应用技术
- 管辖: 仿真模拟

2楼2009-01-11 20:55:30
dickli2008
银虫 (小有名气)
- 应助: 0 (幼儿园)
- 金币: 393.4
- 散金: 112
- 红花: 1
- 帖子: 236
- 在线: 114.5小时
- 虫号: 556129
- 注册: 2008-05-10
- 专业: 凝聚态物性 II :电子结构
3楼2009-03-12 12:03:50
4楼2009-03-16 22:41:32













回复此楼