tj
2024-10-13 17:37:21
发布于:上海
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main()
{
vector<char> a = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
string s;
getline(cin,s);
for(int i = 0;i<s.size();i++)
{
if(s[i]>='a'&&s[i]<='z')
cout<<a[(s[i]-'a'+1)%26];
else
cout<<s[i];
}
}
这里空空如也
有帮助,赞一个