/**************** WZ ASUST 2016 写小代码 就是练习小心吧 *****************/ int main() { int x=1,i,j,k; char s;char ss[20]="zZ+_+_+{}{}{}"; cout<<"start:"<<ss<<endl; for(i=0;i<strlen(ss);i++) { if((ss[i]>64&&ss[i]<90)||(ss[i]>96&&ss[i]<122)) ss[i]=ss[i]+x; if(ss[i]==90) ss[i]=ss[i]+x-26; if(ss[i]==122) ss[i]=ss[i]+x-26; } cout<<"end:"<<ss<<endl; return 0; }
时间: 2024-10-14 23:32:45