登录
上传中....
数组,const,#define
#include<stdio.h> #define count 6 //ok int main(){ //const int count = 6; //error int a[count] = {0}; return 0; }
定义数组长度的时候,可以用宏定义;用const的话,大部分编译器不支持。