- 2022-11-30实验五
task.4cpp#include<iostream>#include"Pets.hpp"voidplay(MachinePets&obj){std::cout<<obj.get_nickname()<<"says"<<obj.talk()<<std::endl;}
- 2022-11-30实验5
task4:pets.hpp:#pragmaonce#include<iostream>#include<string>usingnamespacestd;classMachinePets{public:MachinePets(){}MachinePets(consts
- 2022-11-27实验五
task4Pets.hpp1#pragmaonce2#include<bits/stdc++.h>3usingnamespacestd;4classMachinePets5{6private:7stringnickname;8public:9