请教个问题,string.find()怎么做,可以正确识别中文和英文混合?
#include <iostream>#include <string>using namespace std;int main (){ string lkwkeyword = "苹果,香蕉,ABC,OPQ,xyz"; string strTemp = "香蕉"; int posx = lkwkeyword.find(strTemp,0); cout << posx; return 0; }string lkwkeyword = "苹果,香蕉,ABC,OPQ,xyz"; string strTemp = "香蕉";