diff --git a/CAPI/cpp/API/src/AI.cpp b/CAPI/cpp/API/src/AI.cpp index 0caf5ff..2709e2e 100644 --- a/CAPI/cpp/API/src/AI.cpp +++ b/CAPI/cpp/API/src/AI.cpp @@ -3,6 +3,7 @@ #include #include "AI.h" #include "constants.h" +//注意不要使用conio.h,Windows.h等非标准库 // 为假则play()期间确保游戏状态不更新,为真则只保证游戏状态在调用相关方法时不更新 extern const bool asynchronous = false; diff --git a/docs/使用文档.md b/docs/使用文档.md index 908dd81..3782837 100644 --- a/docs/使用文档.md +++ b/docs/使用文档.md @@ -3,6 +3,9 @@ 本文档仅供Windows选手参考,Linux,macOS选手仿照本文档即可。 [TOC] +## 不应当使用Windows特性的库,不建议使用.h结尾的库,建议使用标准库 +- 不要使用conio.h,Windows.h + ## C++接口使用说明 - Windows:先查看`.\win\CAPI\cpp\`文件夹下是否有`lib`文件夹,没有则https://cloud.tsinghua.edu.cn/d/6972138f641d4e81a446/ 下载并复制粘贴