解题思路:
注意事项:
参考代码:#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语言程序设计教程(第三版)课后习题9.6 (C语言代码)浏览:586 |
C语言程序设计教程(第三版)课后习题7.3 (C语言代码)浏览:1115 |
小九九 (C语言代码)浏览:817 |
矩形面积交 (C语言代码)浏览:1512 |
C语言程序设计教程(第三版)课后习题8.3 (Java代码)浏览:1367 |
C语言训练-字符串正反连接 (C语言代码)浏览:618 |
C语言训练-最大数问题 (C语言代码)浏览:633 |
C语言训练-计算1977!* (C++代码)浏览:848 |
数组输出 (C语言代码)--此题的题目描述有问题浏览:1814 |
大神老白 (C语言代码)浏览:640 |