-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
王永瑶
committed
Mar 14, 2023
1 parent
c43ab0e
commit ec448dd
Showing
5 changed files
with
139 additions
and
68 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
// | ||
// Created by Kazeya on 2023/3/9. | ||
// | ||
|
||
#ifndef BUAA_ASE_WORDLIST_MAIN_H | ||
#define BUAA_ASE_WORDLIST_MAIN_H | ||
const int PARAM_CONFLICT = -1; // 参数不兼容 | ||
const int PARAM_LACK = -2; // 单独出现-h -t -j -r | ||
const int WORD_CIRCLE = -3; // 存在单词环 | ||
const int PARAM_FORMAT = -4; // 指定-h -t -j时,没有给定字母(缺失或给的是数字、符号) | ||
const int PARAM_UNDEFINED = -5; // 参数未定义 | ||
const int FILE_TYPE_WRONG = -6; // 文件非.txt | ||
const int FILE_NOT_EXIST = -7; // 文件不存在 | ||
const int FILE_DUPLICATE = -8; // 重复选择文件 | ||
const int FILE_NOT_GIVEN = -9; // 未选择文件 | ||
const int PARAM_DUPLICATE = -10; // 重复指定-h -t -j | ||
const int RESULT_TOO_LONG = -11; | ||
|
||
#pragma once | ||
extern "C" __declspec(dllexport) int gen_chain_word(char* words[], int len, char* result[], char head, char tail, char banned, bool enable_loop); | ||
extern "C" __declspec(dllexport) int gen_chain_char(char* words[], int len, char* result[], char head, char tail, char banned, bool enable_loop); | ||
extern "C" __declspec(dllexport) int gen_chains_all(char* words[], int len, char* result[]); | ||
extern "C" __declspec(dllexport) void testDll(); | ||
extern "C" __declspec(dllexport) void testStr(char* result[]); | ||
int test_main(int argc,char*argv[]); | ||
|
||
#endif //BUAA_ASE_WORDLIST_MAIN_H | ||
#endif //BUAA_ASE_WORDLIST_ERRORS_H |