1
来源:互联网 发布:湘阴县知源中学 编辑:程序博客网 时间:2024/05/16 05:37
#include "stdio.h"
#include "string.h"
#define MAX_ROW 100
#define MAX_COL 200
void decryption(char s[])
{
int i;
for(i=0;s[i];++i)
if(s[i]>='A'&&s[i]<='Z')
//if(s[i]>85)
//s[i]=69-90%s[i];
if(s[i]>69)
s[i]-=5;
else
s[i]+=21;
}
void main()
{
int i=0,j=0;
char s[MAX_ROW][MAX_COL+1];
char t[MAX_COL+1];
while(strcmp(gets(t),"ENDOFINPUT"))
if(strcmp(t,"START")&&strcmp(t,"END"))
strcpy(s[i++],t);
for(;j<i;++j)
decryption(s[j]);
printf("After decrypted:\n");
for(j=0;j<i;++j)
puts(s[j]);
}
- 1
- 1
- 1
- 1
- 1
- 1
- 1》
- 1
- 1
- 1
- 1
- (1)
- 1
- 1
- 1
- 1
- 1
- 1
- Python编程中常用的12种基础知识总结
- 为VC++ 6.0 配置OpenGL 环境 [图形学]
- C++虚函数的实现机制
- 区间最值与线段树
- 把“苹果中国首发”视为扬眉吐气是自卑的表现
- 1
- navicat for mysql的使用
- 浅谈Sql Server中的 隔离层级(Isolation Levels)
- python练习linux下创建路径
- C++ 类继承内存布局
- 给属性赋默认值
- Arduino to Arduino Radio frequency (RF) communication
- 五、表的概念以及在图形界面下创建和编辑表
- Ubuntu下QT -4.8.2安装