求指点错误
#include<iostream>#include<string>
using std::cin;
using std::cout;
using std::endl;
using std::string;
int main()
{
string s1="Zhaojunn",s2="Zhaojun";
cin>>s1>>endl;
cin>>s2>>endl;
if(s1==s2)
cout<<"s1=s2!!"<<endl;
else
if(s1>s2)
cout<<"s1>s2!!"<<endl;
else
cout<<"s1<s2!!!"<<endl;
return 0;
}
错误是:d:\vc++\day1\ex3_7\ex3_7.cpp(10) : error C2679: binary '>>' : no operator defined which takes a right-hand operand of type '' (or there is no acceptable conversion)
求高手指点~~~不胜感激!!