C++问题。。。
string deal,origin,useless;
cin>>origin;
strcpy(deal,origin);
改成 deal=origin;好了
但
if(strchr(useless,deal[k])==NULL)
~~~这句不行了怎么办。。。
error C2664: 'strchr' : cannot convert parameter 1 from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'const char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called