在dev c++上编写的一段c++程序出错,不知道怎么回事?

[复制链接]
查看11 | 回复2 | 2013-3-31 12:24:35 | 显示全部楼层 |阅读模式
在#include下边一行加上 using namespace std; 就好了。出错是因为编译器不知道你的cout是什么东西,加上名空间说明,编译器就知道在名空间std中找cout了,这样就好了。...
回复

使用道具 举报

千问 | 2013-3-31 12:24:35 | 显示全部楼层
#include//你写成了inclideusing namespace std;//最好再加上这句 int main()//最好加上返回值类型int{
const int m=9;
float x=3.28f;
char ch='d';
int count;
c...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行