刪除字符串中的子串

輸入2個字符串S1和S2,要求刪除字符串S1中出現的全部子串S2,即結果字符串中不能包含S2。 輸入樣例: Tomcat is a male ccatat cat 輸出樣例: Tom is a malecss #include<stdio.h> //Tomcat is a male ccatat //cat int main () { char s1[81], s2[81]; g
相關文章
相關標籤/搜索