关于变量作用域的测试 (vc6) int main() { { int i=3; } cout<<i<<endl; return 0; } 编译结果:error C2065: 'i' : undeclared identifier 体会:说明在括号内定义的变量的作用域只在括号内有效;