| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 915 人关注过本帖
标题:请教一个问题,能快点给我帮助吗
取消只看楼主 加入收藏
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
快速回复:请教一个问题,能快点给我帮助吗
数据加载中...
 
   



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

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