輸入字元,串,將這個字串中大寫字母去掉,輸出剩餘字串

2021-03-03 21:43:08 字數 1029 閱讀 6426

1樓:匿名使用者

1輸入字串

bai;2對輸入的du字串zhi遍歷,並分別統計個dao數;3遍歷結束後

專輸出。**:屬int main()

c的題目。輸入一個字串,將這個字串中的大寫英文字母除去,輸出剩餘的字元組成的字串。

2樓:匿名使用者

#include

#include

main()

}printf("%s",a);

getchar();}

3樓:聽不清啊

||#include

main()

c語言,我編的程式是輸入一個字串,將其中的大寫字母變成小寫字母,小寫字母變成大寫字母,並輸出。如

4樓:匿名使用者

你有兩條if語句,你在最後一條if語句前面加 else 就可以了

5樓:匿名使用者

將第二個if改為else if

6樓:奈乜希

用用清華的c語言教材

c語言:從鍵盤輸入一個字串,將其中的的小寫字母改為大寫字母,並輸出修改後的字串

7樓:匿名使用者

#include

int main()

printf("%s\n",s);

return 0;}

8樓:75_飛星

#include

#include

int main(void)

a[++i] = '\0';

puts(a);}

9樓:匿名使用者

main()

printf("%s",a);}

10樓:岑永洪

資訊學奧賽 1138-將字串中的小寫字母轉換成大寫字母

c語言輸入字串,將該字串中從第m個字元開始的全部字元複製到另字串

這樣 include include int main void copystr char char int int m char str1 20 str2 20 printf input string gets str1 printf which character that begin to c...

c語言從鍵盤輸入兩個字串,將字串連線到字串的後面,並輸出連線

include include int main char s1 char s2 char output printf please input the first string scanf s s1 printf please input the second string scanf s s2 ...

程式設計序,輸入字串,將組成字串的所有非英文字母的字

我的bai理解是,這個 和dua的初始化情況zhi有關,當a如果不是dao初始化為全0的話,就可能出錯。專可考慮調整為 屬 include include int main return 0 include void main a j 0 puts a 編一個程式,輸入一個字串,將組成字串的所有非英...