#include<stdio.h>const int num=8;
main (){ int board [num]={0}; //error C2057: expected constant expression //error C2466: cannot allocate an array of constant size 0}请指教,谢谢
用预定义试试;#define num 8
以C99的标准来看,这段代码的确是没错。。。不过这段代码能连DEV-C++都编译不过~~~~``不知什么编译器能很好地支持C99