admin 管理员组

文章数量: 1086019


2024年4月25日发(作者:proxy代理跨域)

# include

# include

# include

using namespace std;

void main(int argc, char *argv[])

{

FILE *fp_ciper, *fp_plain; //密文与明文的文件指针

char ch_ciper, ch_plain;

int i, temp = 0; //i用来存储最多次数出现的下标

//temp用在求最多次数时用

int key;

int j;

int num[26]; //保存密文中字母出现次数

for (i = 0; i < 26; i++)

{

cout << "=================================" << endl;

cout << "=================================" << endl;

if (argc != 3)

{

cout << "此为KAISER解密用法:[文件名][密文路径][明文路径]" << endl;

cout << "例如: decryption F:ciper_2_ F:" << endl;

//判断输入参数是否正确

}

if ((fp_ciper = fopen argv[1], "r")) = NULL)

{

cout << "打开密文出错!解密失败" << endl;


本文标签: 密文 次数 出现 路径 字母