1808 Problem C: 字符串的查找刪除

注意:scanf後面一定不要直接用gets.不然會直接讀取\n。實在是想用可以用getchar先把這個換行符\n處理掉 #include<cstdio> #include<cstring> #include<cmath> int main(){ //字符數組開大一點 char str1[1000]; gets(str1); int len1 = strlen(str1); char
相關文章
相關標籤/搜索