摘要: #include using namespace std; //找到字符串中最长的数字串 void find_max_num_string(char *str,char max[] ) { char c; char num[50] = { "\0" }; int i=0; int j=0; int new_sign= 0; while(1) {... 阅读全文
posted @ 2018-04-16 23:20 新新苦苦的学习 阅读(210) 评论(0) 推荐(0) 编辑
摘要: //判断a串是否含有b串的所有字符 //前面步骤相同 for(int i=0;i=0) return true; } #include #include using namespace std; //判断两个字符串是否是变位词 bool anagram(string str1, string str2) { in... 阅读全文
posted @ 2018-04-16 17:38 新新苦苦的学习 阅读(596) 评论(0) 推荐(0) 编辑