38 lines
608 B
Plaintext
38 lines
608 B
Plaintext
本程序需要在Linux下Make编译运行
|
||
源程序使用UTF-8编码
|
||
|
||
需要程序:GNU Make、GNU G++
|
||
|
||
编译运行方式:
|
||
1. 打开Linux终端
|
||
2. 命令行输入make命令,使用Make程序构建程序
|
||
3. 命令行输入./Main ,运行
|
||
|
||
|
||
如需Windows的命令行编译运行(不推荐):
|
||
1. 安装Make工具、G++编译器及二者的环境变量
|
||
2. 更改源程序AddList.cpp 中的第29行为 system("cls")
|
||
3. 改变命令行编码为UTF-8(输入命令chcp 65001 程序使用编码为UTF-8)
|
||
4. 重新Make编译运行
|
||
|
||
源代码文件结构:
|
||
|
||
├── AddList.cpp
|
||
|
||
├── AddList.h
|
||
|
||
├── ArrayHash.cpp
|
||
|
||
├── ArrayHash.h
|
||
|
||
├── Hash.cpp
|
||
|
||
├── Hash.h
|
||
|
||
├── Main
|
||
|
||
├── Makefile
|
||
|
||
└── records.txt
|
||
|