判断一个字符串中,是否含有中文 int main() { //待测字符串 string str="iam泡泡哒哟,remember我"; int i=0;//下标 int conut=0;//中文数量计数 while(str