标题:请教一个问题,能快点给我帮助吗
取消只看楼主
lixiuchun717
Rank: 1
来 自:chengde
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-6-13
 问题点数:0 回复次数:0 
请教一个问题,能快点给我帮助吗
#include <iostream.h>
int main()
{
int a;
cout<<"请输入一个数字,按回车结束"<<endl;
cin>> a;
cout<<a<<endl;
return 0;
}

在编译时会出现如下提示:

:\lxc\study\l.c(5) : error C2065: 'cout' : undeclared identifier
d:\lxc\study\l.c(5) : error C2297: '<<' : illegal, right operand has type 'char [27]'
d:\lxc\study\l.c(5) : error C2065: 'endl' : undeclared identifier
d:\lxc\study\l.c(6) : error C2065: 'cin' : undeclared identifier
d:\lxc\study\l.c(6) : warning C4552: '>>' : operator has no effect; expected operator with side-effect
d:\lxc\study\l.c(7) : warning C4552: '<<' : operator has no effect; expected operator with side-effect
搜索更多相关主题的帖子: int main cout include 
2008-06-13 12:39



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




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

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