缘由https://bbs.csdn.net/topics/395385324
char answer[3];
cin.getline(answer, 3);
cout << (!strcmp(answer, "是") ? "回答正确" : "错误");
C++char中文字符串比较
最新推荐文章于 2024-11-12 15:18:48 发布
缘由https://bbs.csdn.net/topics/395385324
char answer[3];
cin.getline(answer, 3);
cout << (!strcmp(answer, "是") ? "回答正确" : "错误");