Gobang_AI_by_Kevin icon indicating copy to clipboard operation
Gobang_AI_by_Kevin copied to clipboard

2021年了,用不了

Open YouLanjie opened this issue 3 years ago • 2 comments

打算找个五子棋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年...

YouLanjie avatar Jun 12 '21 08:06 YouLanjie

这是一个尝试性的评论

kdm196 avatar Nov 04 '23 13:11 kdm196