Fork me on GitHub
摘要: 查找替换元素在s中的元素aabb,s1查找s中是否有相同元素b,有相同元素全部替换为s2c最后为aacc*/ 阅读全文
posted @ 2018-04-17 19:25 风中等待 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 寻找相同元素的指针,寻找两个数组中第一次出现相同的数 寻找指定元素的位置 1 // 寻找指定元素的位置 2 #include <iostream> 3 4 using namespace std; 5 6 int search(int *apt,int n,int key)//apt首指针 7 { 阅读全文
posted @ 2018-04-17 16:57 风中等待 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 字符串匹配 1 //字符串匹配 2 #include<iostream> 3 #include<windowsx.h> 4 #include<string.h> 5 using namespace std; 6 7 int ViolentMatch(char *s, char *t) 8 { 9 i 阅读全文
posted @ 2018-04-17 15:14 风中等待 阅读(151) 评论(0) 推荐(0) 编辑