当函数有多个形参,如果其中一个定义有默认值,后面的(右侧)形参也必须定义默认值。 例: void fun( int a,int b=1,int c); 错误 void fun( int a,int c,int b=1); 正确