- 
                                        实验2一、实验结论 1. 实验任务1 程序源代码 T.h #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复
- 
                                        实验2 现代C++编程初体验1.实验任务1 #pragma once #include <string> class T { public: T(int x = 0, int y = 0); T(const T& t); T(T&& t); ~T(); void adjust(int ratio); void display(
- 
                                        实验21.实验任务1 T.h源码 点击查看代码 #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数
- 
                                        实验二任务1: 源代码task1.cpp #include "T.h" #include <iostream> void test_T(); int main() { std::cout << "test Class T: \n"; test_T(); std::cout << "\ntest frien
- 
                                        实验二任务一 T.h #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t); //
- 
                                        实验二实验任务1 源代码 T.cpp #include "T.h" #include <iostream> #include <string> // 类T实现 // static成员数据类外初始化 const std::string T::doc{"a simple class sample"}; con
- 
                                        实验二task1 T.h #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T& t); // 复制构造函数 T(T&& t);
- 
                                        实验二task1: 代码组织: T.h 内容:类T的声明、友元函数声明 T.cpp 内容:类T的实现、友元函数实现 task1.cpp 内容:测试模块、main函数 T.h : #pragma once #include <string> // 类T: 声明class T { // 对象属性、方法 pub
- 
                                        实验2任务1: 源代码: 1 #pragma once 2 3 #include <string> 4 5 // 类T: 声明 6 class T { 7 // 对象属性、方法 8 public: 9 T(int x = 0, int y = 0); // 普通构造函数 10 T(const T &t);
- 
                                        实验2实验二: 实验1 源代码: T.h 1 #pragma once 2 3 #include <string> 4 5 // 类T: 声明 6 class T { 7 // 对象属性、方法 8 public: 9 T(int x = 0, int y = 0); // 普通构造函数 10 T(cons
- 
                                        实验二1、实验任务一 源代码: #include "T.h" #include <iostream> #include <string> // 类T实现 // static成员数据类外初始化 const std::string T::doc{"a simple class sample"}; const
- 
                                        实验2实验任务1 源代码T.h 1 #pragma once 2 3 #include <string> 4 5 // 类T: 声明 6 class T { 7 // 对象属性、方法 8 public: 9 T(int x = 0, int y = 0); // 普通构造函数 10 T(const T &
- 
                                        实验2实验任务1 T.h #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t);
- 
                                        实验作业2四、实验结论 实验内容1 代码1 T.cpp 1 #include "T.h" 2 #include <iostream> 3 #include <string> 4 5 // 类T实现 6 7 // static成员数据类外初始化 8 const std::string T::doc{"a sim
- 
                                        实验21.实验任务1 T.h #pragma once #include <string> // 类T: 声明 class T { // 对象属性、方法 public: T(int x = 0, int y = 0); // 普通构造函数 T(const T &t); // 复制构造函数 T(T &&t)
- 
                                        实验2一、实验任务1 源代码T.h 1 #pragma once 2 #include<string> 3 class T{ 4 public: 5 T(int x=0,int y=0); 6 T(const T &t); 7 T(T &&t); 8 ~T(); 9 void adjust(int rat
- 
                                        oop实验二实验二 task1 源代码: 1 #include "T.h" 2 #include <iostream> 3 #include <string> 4 5 // 类T实现 6 7 // static成员数据类外初始化 8 const std::string T::doc{"a simple clas
- 
                                        现代c++编程体验2##task1 #代码 1 #include "2T.h" 2 #include <iostream> 3 #include<string> 4 5 const std::string T::doc{"a simple class sample"}; 6 const int T::max_cnt =
- 
                                        实验2实验任务1: T.h: #pragma once #include <string> class T { public: T(int x = 0, int y = 0); T(const T &t); T(T &&t); ~T(); void adjust(int ratio); void disp
- 
                                        实验2实验任务1 T.h: #pragma once #include <string> class T { public: T(int x = 0, int y = 0); T(const T &t); T(T &&t); ~T(); void adjust(int ratio); void displ