提交 575565ca 编写于 作者: 东方怂天's avatar 东方怂天

Time to say goodbye.

上级 a694eae3
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "g++.exe build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [
"C:\\Users\\EasternDay\\Desktop\\Encode.txt"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:\\MinGW\\bin\\gdb.exe",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "g++.exe build active file"
}
]
}
\ No newline at end of file
{
"files.associations": {
"xtree": "cpp",
"xutility": "cpp",
"ostream": "cpp",
"iostream": "cpp",
"fstream": "cpp",
"xstring": "cpp",
"xiosbase": "cpp",
"istream": "cpp",
"iosfwd": "cpp"
}
}
\ No newline at end of file
{
"tasks": [
{
"type": "shell",
"label": "g++.exe build active file",
"command": "C:\\MinGW\\bin\\g++.exe",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "C:\\MinGW\\bin"
}
}
],
"version": "2.0.0"
}
\ No newline at end of file
......@@ -11,5 +11,5 @@ using namespace std;
//如果只有英文,则ByteSize为128
//而中文的ASCII码为复数,因此范围扩大一倍,为256
#define ByteSize 512
#define ByteSize 256
#define MAXSIZE ByteSize * 2
\ No newline at end of file
......@@ -8,15 +8,14 @@ int main(int argc, char *argv[])
//Encode("Huffman\\New\\Test.txt");
//Decode("Encode.txt");
cout << "使用解密时请注意务必将Huffman.Tree和Huffman.Code文件放在本目录下。" << endl;
cout << "使用加密时将在本目录下自动生成Huffman.Tree和Huffman.Code文件。" << endl;
cout << "这回就不是调试级别了!!!" << endl;
cout << "Please prepare Huffman.Tree and Huffman.Code" << endl;
cout << "We will creat Huffman.Tree and Huffman.Code if encode." << endl;
int s;
for (int i = 1; i < argc; i++)
{
cout << "你输入了文件" << argv[i] << endl;
cout << "请问执行什么操作(加密_输入0/解密_输入1):";
cout << "Input file:" << argv[i] << endl;
cout << "Excute(Encode0/Decode1):";
cin >> s;
if (s == 0)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册