大家都把文件打印了发给律师的?# Immigration - 落地生根
q*x
1 楼
关于什么时候用,什么时候不用。
#include
using namespace std;
template
class X {
// Why "class X {" not working?
public:
X() { cout << "T" << endl; }
X(const X& in);
private:
T x;
};
template
X::X(const X& in): x(in) {}
// Why "X::X(const X& in): x(in) {}" not working?
#include
using namespace std;
template
class X {
// Why "class X
public:
X() { cout << "T" << endl; }
X(const X& in);
private:
T x;
};
template
X
// Why "X::X(const X& in): x(in) {}" not working?