Gobang_AI_by_Kevin
Gobang_AI_by_Kevin copied to clipboard
2021年了,用不了
打算找个五子棋c语言实例学习一下 结果编译器直接报错:
In file included from main_game.h:11,
from main.c:2:
base.h:24:6: error: expected ‘{’ before ‘:’ token
24 | enum : char { NO_PLY = 0, AI_CHESS = 1, H1_CHESS = 2, H2_CHESS = 3 };
| ^
base.h:37:2: error: expected specifier-qualifier-list before ‘Point’
37 | Point(void) { }
| ^~~~~
base.h:41:8: error: unknown type name ‘Point’
41 | extern Point AIChoice;
| ^~~~~
In file included from main.c:2:
main_game.h:15:1: error: unknown type name ‘Point’; use ‘struct’ keyword to refer to the type
15 | Point AITurn(); // AI回合
| ^~~~~
| struct
In file included from main.c:3:
controller.h:23:8: error: unknown type name ‘Point’
23 | extern Point cursor; // 坐标
| ^~~~~
一看git log,最后一次更新在2018年...
这是一个尝试性的评论