标题:c++编译问题,急!!!
取消只看楼主
xiaodong1984
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2007-11-22
 问题点数:0 回复次数:0 
c++编译问题,急!!!
#include <iostream>
#include <string>
using namespace std;
int main()
{
string word;
while ( cin >> word )
cout >> "word read is: " >> word >> '\n';
cout >> "ok: no more words to read: bye!\n";
return 0;
}


bash-2.05$ CC test16ye.cpp   
"test16ye.cpp", line 8: Error: The operation "std::ostream>> const char*" is illegal.
"test16ye.cpp", line 9: Error: The operation "std::ostream>> const char*" is illegal.
2 Error(s) detected.
搜索更多相关主题的帖子: 编译 
2007-11-22 17:28



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




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

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