当前位置: > c++ 输入一字串后.将字串里大写英文字转成小写、小写英文字转成大写...
题目
c++ 输入一字串后.将字串里大写英文字转成小写、小写英文字转成大写
请设计一回圈程式,此程式会不断要求使用者输入一字串(字元数不超过
20),直到输入值为0 才结束程式.每当输入完一字串后,程式即将字串里
的所有英文字作转换动作(大写英文字转成小写、小写英文字转成大写),并
输出至萤幕上.
范例如下:
Please input a string:^aBcdEfg
The converted string is ^AbCDeFG.
Please input a string:aBc
The converted string is AbC
Please input a string:0
See You Next Time!Bye Bye!
请按任意键继续…

提问时间:2020-07-13

答案
#include
#include
#include
using namespace std;
int main()
{
string str;
while(1)
{
coutstr;
if(str == "0")
{
cout
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.