摘要: 正确写法: 头文件: #include<string.h> if(strcmp(str.c_str(),str1.c_str())==0) 注意:以下写法在提交到 vj 全是错 if(str==str1) if(strcmp(str1,str2)//因为str是字符串呀,不行就是不行,只能是字符数组 阅读全文
posted @ 2019-01-21 14:49 saaas 阅读(1370) 评论(0) 推荐(0)