HzuMomoc


私信TA

用户名:932521665

访问量:33501

签 名:

记得在搬砖中多摸鱼!!!

等  级
排  名 87
经  验 8801
参赛次数 8
文章发表 68
年  龄 0
在职情况 在职
学  校 贺州学院
专  业

  自我简介:

解题思路:

注意事项:

参考代码:#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 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换万能编程问答  

代码解释器

代码纠错

SQL生成与解释

  评论区