void test(int a, const int b)
{
a = 0;//OK
b = 0;//编译时错误,const参数不能被赋值
}void test(int a, ? int b)
{
a = 0; //ok
b = 0; // 如何修饰能在此引起编译错误?
}
{
a = 0;//OK
b = 0;//编译时错误,const参数不能被赋值
}void test(int a, ? int b)
{
a = 0; //ok
b = 0; // 如何修饰能在此引起编译错误?
}
其他時候都不可以賦值了。。
2楼正确感觉不得劲可以给微软发email,请求整改。