摘要:
来自C++Primer编程练习6.11-1 编写一个小程序,读取键盘输入,直到遇到@符号为止,并回显输入(数字除外),同时将大写字符转换为小写,将小写字符转换为大写。 #include<iostream> using namespace std; int main() { char a[50]; c 阅读全文
摘要:
源程序:C++Primer例题6.14,求5个高尔夫得分的平均数,5个数字依次输入,如果输入非数字,程序将拒绝,并要求用户继续输入数字。 #include<iostream>using namespace std; const int Max = 5; int main(){ int golf[Ma 阅读全文