int fun(int x);//在c++中尽量不要这么写, int fun(const int & x);//这种写法,前提是x不能被修改,使用引用提高效率。 转载于:https://www.cnblogs.com/izrail/p/11475390.html