解决方法
What is the reason behind this?
C(与C不同)不允许使用非常量值初始化全局值.
C99标准:第6.7.8节:
All the expressions in an initializer for an object that has static storage duration shall be constant expressions or string literals.
What is the reason behind this?
C(与C不同)不允许使用非常量值初始化全局值.
C99标准:第6.7.8节:
All the expressions in an initializer for an object that has static storage duration shall be constant expressions or string literals.