解题思路:
注意事项:
参考代码:#include<iostream>
#include<string>
using namespace std;
int main()
{
string str;
while(getline(cin,str))
{
if(str=="END")
break;
int n=str.size();
for(int i=0;i<n;i++)
{
char ch=str[i];
if(ch=='A'||ch=='W'||ch=='F')
str[i]='I';
else if(ch=='D'||ch=='P'||ch=='G'||ch=='B')
str[i]='e';
else if(ch=='C')
str[i]='L';
else if(ch=='M')
str[i]='o';
else if(ch=='S')
str[i]='v';
else if(ch=='L')
str[i]='Y';
else if(ch=='X')
str[i]='u';
}
cout<<str<<endl;
}
return 0;
}
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题7.4 (C语言代码)浏览:443 |
C二级辅导-同因查找 (C语言代码)浏览:663 |
C语言程序设计教程(第三版)课后习题5.7 (C++代码)浏览:855 |
C语言训练-角谷猜想 (C语言代码)浏览:1705 |
C语言程序设计教程(第三版)课后习题10.1 (Java代码)浏览:1447 |
Pascal三角 (C语言代码)浏览:1188 |
WU-输出九九乘法表 (C++代码)浏览:1671 |
简单的a+b (C语言代码)浏览:528 |
C语言程序设计教程(第三版)课后习题6.1 (C语言代码)浏览:701 |
C语言程序设计教程(第三版)课后习题9.4 (C语言代码)浏览:667 |