void f(int s){
char buf[s];
}
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
编译错误:
1>d:\myproj\testc99.cpp(2): error C2057: 应输入常量表达式
1>d:\myproj\testc99.cpp(2): error C2466: 不能分配常量大小为 0 的数组
1>d:\myproj\testc99.cpp(2): error C2133: “buf”: 未知的大小
调试欢乐多
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货