修改为正确代码#include iostream#include cstringusing namespace std;bool cmpconst char a const char b return strcmpa b 0; strcmp函数比较两个C风格字符串的大小小于0则ab等于0则a=b大于0则abint main char a21 b21 c21; cingetl
没有错误,已经是正确代码。
原文地址: http://www.cveoy.top/t/topic/bTX4 著作权归作者所有。请勿转载和采集!