Keil默认情况下,不允许出现长度为0的数组,例如char name[0];
  解决方法是使用gnu模式:Options for target -> C/C++ -> Misc Control -> input "--gnu"

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐