c语言程序设计进阶week3:删除字符串中的子串(字符串与指针的完美结合)

题目来源自mooc:C语言程序设计进阶,仅供我的学习参考使用学习 #include <stdio.h> #include <string.h> int main(){ char s1[85], s2[85]; char *p; char temp[85]; scanf("%s",&s1); scanf("%s",&s2); while((p=strstr(s1,s2)) != NULL) { //
相关文章
相关标签/搜索