第十周算法提高9-2文本加密
本文最后更新于 2040 天前,其中的信息可能已经有所发展或是发生改变。
#include<iostream> 
using namespace std;
int main(){
	char arr[55];
	int i=0;
	cin>>arr;
	while(arr[i]!='\0'){
		if(arr[i]=='A')arr[i]='B';
		else if(arr[i]=='A')arr[i]='B';
		else if(arr[i]=='B')arr[i]='C';
		else if(arr[i]=='C')arr[i]='D';
		else if(arr[i]=='D')arr[i]='E';
		else if(arr[i]=='E')arr[i]='F';
		else if(arr[i]=='F')arr[i]='G';
		else if(arr[i]=='G')arr[i]='H';
		else if(arr[i]=='H')arr[i]='I';
		else if(arr[i]=='I')arr[i]='J';
		else if(arr[i]=='J')arr[i]='K';
		else if(arr[i]=='K')arr[i]='L';
		else if(arr[i]=='L')arr[i]='M';
		else if(arr[i]=='M')arr[i]='N';
		else if(arr[i]=='N')arr[i]='O';
		else if(arr[i]=='O')arr[i]='P';
		else if(arr[i]=='P')arr[i]='Q';
		else if(arr[i]=='Q')arr[i]='R';
		else if(arr[i]=='R')arr[i]='S';
		else if(arr[i]=='S')arr[i]='T';
		else if(arr[i]=='T')arr[i]='U';
		else if(arr[i]=='U')arr[i]='V';
		else if(arr[i]=='V')arr[i]='W';
		else if(arr[i]=='W')arr[i]='X';
		else if(arr[i]=='X')arr[i]='Y';
		else if(arr[i]=='Y')arr[i]='Z';
		else if(arr[i]=='Z')arr[i]='a';
		else if(arr[i]=='a')arr[i]='b';
		else if(arr[i]=='b')arr[i]='c';
		else if(arr[i]=='c')arr[i]='d';
		else if(arr[i]=='d')arr[i]='e';		
		else if(arr[i]=='e')arr[i]='f';
		else if(arr[i]=='f')arr[i]='g';
		else if(arr[i]=='g')arr[i]='h';
		else if(arr[i]=='h')arr[i]='i';
		else if(arr[i]=='i')arr[i]='j';
		else if(arr[i]=='j')arr[i]='k';
		else if(arr[i]=='k')arr[i]='l';
		else if(arr[i]=='l')arr[i]='m';
		else if(arr[i]=='m')arr[i]='n';
		else if(arr[i]=='n')arr[i]='o';
		else if(arr[i]=='o')arr[i]='p';
		else if(arr[i]=='p')arr[i]='q';
		else if(arr[i]=='q')arr[i]='r';
		else if(arr[i]=='r')arr[i]='s';
		else if(arr[i]=='s')arr[i]='t';
		else if(arr[i]=='t')arr[i]='u';
		else if(arr[i]=='u')arr[i]='v';
		else if(arr[i]=='v')arr[i]='w';
		else if(arr[i]=='w')arr[i]='x';
		else if(arr[i]=='x')arr[i]='y';
		else if(arr[i]=='y')arr[i]='z';
		else if(arr[i]=='z')arr[i]='A';
		
		i++;
	}
	cout<<arr;
	return 0;
}
作者:Yuyy
博客:https://yuyy.info
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇