以下代码有什么问题?
#define DELAY_CYCLES ((int)(0.1/0.001)) typedef struct { double state_history[N_X][DELAY_CYCLES]; double foo; } foo
gcc抱怨:
main.h:52:3:警告:在文件范围内修改了'state_history'
是因为int cast由于某种原因无法在编译时完成吗?
c
c ×1