默认形参值得使用注意事项 #include<iostream> using namescape std; void fun(char*r="abc");//函数声明处指定默认值 int main() { fun(