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.