在VC++6.0环境下int a;scanf("%d",&a);int x[a];
为何不行?这样是正确的吗,在别的环境下可以运行吗?
gcc可以,vc不可以。vc要写int * x;x = new int[a];
不行,a是输入必能作为数据大小定义。