acac
2023-12-26 20:56:27
发布于:广东
3阅读
0回复
0点赞
#include <iostream>
#include <string.h>
using namespace std;
char s[50];
int main(){
cin >> s;
int len = strlen(s);
for(int i = 0; i < len; i++){
if(s[i] >= '0' && s[i] <= '9'){
cout << s[i];
continue;
}
if(s[i] == 'x'){
cout << "yza";
continue;
}
if(s[i] == 'y'){
cout << "zab";
continue;
}
if(s[i] == 'z'){
cout << "abc";
continue;
}
cout << char(s[i] + 1) << char(s[i] + 2) << char(s[i] + 3);
}
return 0;
}
这里空空如也
有帮助,赞一个