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”: 未知的大小