摘要:
16.使用this指针复制数据.头文件: 1 #include 2 3 using namespace std; 4 5 class Obj 6 { 7 int a, b; 8 9 public:10 Obj(int x = 0, int y = 0)11 {12 ... 阅读全文
摘要:
10.分析下列程序的执行结果.头文件: 1 #include 2 3 using namespace std; 4 5 class Point 6 { 7 float x, y; 8 9 public:10 Point()11 {12 x = 0;13... 阅读全文