拷贝构造函数应用场景之二

#include <iostream> using namespace std; class Test { public: Test() { cout << "test()..." << endl; m_x = 0; m_y = 0; } Test(int x, int y) { cout << "Test(int x, int y)..." << endl;
相关文章
相关标签/搜索