| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 689 人关注过本帖
标题:[求助]cerr和cout的区别
取消只看楼主 加入收藏
taijixing
Rank: 1
等 级:新手上路
威 望:1
帖 子:118
专家分:0
注 册:2007-6-9
收藏
 问题点数:0 回复次数:3 
[求助]cerr和cout的区别

#include <iostream.h>

//using namespace std;


void main(void)
{
for (int i=1;i<=10;i++)
cerr>>"can't"<<i<<endl;
//return 0;
}



在线等待!

搜索更多相关主题的帖子: cerr cout 
2007-08-04 21:32
taijixing
Rank: 1
等 级:新手上路
威 望:1
帖 子:118
专家分:0
注 册:2007-6-9
收藏
得分:0 

还有clog
编译时候都会有个错误提示:
-------------------Configuration: cerr - Win32 Debug--------------------
Compiling...
cerr.cpp
E:\vc++\add\cerr\cerr.cpp(9) : error C2676: binary '>>' : 'class ostream_withassign' does not define this operator or a conversion to a type acceptable to the predefined operator
执行 cl.exe 时出错.

cerr.exe - 1 error(s), 0 warning(s)

2007-08-04 21:36
taijixing
Rank: 1
等 级:新手上路
威 望:1
帖 子:118
专家分:0
注 册:2007-6-9
收藏
得分:0 
呵呵
2007-08-04 22:34
taijixing
Rank: 1
等 级:新手上路
威 望:1
帖 子:118
专家分:0
注 册:2007-6-9
收藏
得分:0 
谢谢大家的关注
2007-08-06 19:10
快速回复:[求助]cerr和cout的区别
数据加载中...
 
   



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

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