今天才知道c++函数不能返回数组,真实水,想要完成相同效果只能用指向数组的指针或数组引用。
c++11 增加了额新功能,就是形参列表initializer_list<T> lst. 可以传递不知数目的参数啊 有木有
重新定义函数是合法的,但在给定的作用域内,每个函数中参数只能被默认赋值一次
Just as with arrays, we cannot define parameters of function type but can have a parameter that is a pointer to function. As with arrays, we can write a parameter that looks like function types, but it will be treated as a pointer.