#include<stdio.h>
#include<stdlib.h>
void shuru(){
FILE *cfptr;
char word;
if((cfptr=fopen("wenjian.dat","w"))==NULL)
printf("文件不能被打开或建立\n");
else{
scanf("%c",&word);
}
fclose(cfptr);
} void main(){
int s;
scanf("%d",&s);
while(s!=0)
{
printf("**********************************************************\n");
printf("* *\n");
printf("* 1--输入 2--加密 3--解密 4--显示 5-统计 0--退出 *\n");
printf("* *\n");
printf("********************************************************** \n");
}
if(s<0||s>5)
printf("please input 0~5");
}
#include<stdlib.h>
void shuru(){
FILE *cfptr;
char word;
if((cfptr=fopen("wenjian.dat","w"))==NULL)
printf("文件不能被打开或建立\n");
else{
scanf("%c",&word);
}
fclose(cfptr);
} void main(){
int s;
scanf("%d",&s);
while(s!=0)
{
printf("**********************************************************\n");
printf("* *\n");
printf("* 1--输入 2--加密 3--解密 4--显示 5-统计 0--退出 *\n");
printf("* *\n");
printf("********************************************************** \n");
}
if(s<0||s>5)
printf("please input 0~5");
}
![](http://hiphotos.baidu.com/%B7%C7%CE%BD%D3%EFi%B6%AF%B4%CA/pic/item/4a49eab569c55ac230add10f.jpg?v=tbs)