代码片段
string cmd;
cin>>cmd;
if(cmd.find("|")!=cmd.end()){
printf("请不要输入'|',谢谢配合")
}
报错
43 22 C:\???\Users\???\Desktop\???.cpp [Error] no match for 'operator!=' (operand types are 'std::basic_string<char>::size_type {aka unsigned int}' and 'std::basic_string<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::basic_string<char> >}')
求调,求解决。