📄 decode.h
字号:
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
void Decode(string infilename, string outfilename, int wordnumber[], string str[])
{
const char *out = outfilename.c_str();
const char *in = infilename.c_str();
ofstream outfile(out);
ifstream infile(in);
int x;
char c;
string store;
while(!infile.eof())
{
infile.get(c);
store.append(1,c);
int i;
for(i=0; str[i]!=""; i++)
{
if(store == str[i])
{
x = wordnumber[i];
c = x+97;
outfile<<c;
store.clear();
}
}
}
outfile.close();
infile.close();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -