苹果中国官司现在爆多# Apple - 家有苹果
c*s
1 楼
听来的一道c++题,大家看看
class A{
public A(int t){};
};
void f1(A a){...}
void f2(A& a) {...}
void f3(const A& a) {...}
下面的函数调用,哪些能工作,哪些不能,为什么?
f1(5);
f2(5);
f3(5);
class A{
public A(int t){};
};
void f1(A a){...}
void f2(A& a) {...}
void f3(const A& a) {...}
下面的函数调用,哪些能工作,哪些不能,为什么?
f1(5);
f2(5);
f3(5);