12-1
//hf #pragma once #ifndef COW_H_ #define COW_H_ class Cow { private: char name[20]; char* hobby; double weight; public: Cow(); Cow(const char* nm, const char* ho, double wt); Cow(const Cow& c); ~Cow(); Cow& operator=(const Cow& c); void ShowCow() const; }; #endif // !COW_H_ //rf #include "pch.h" #include <iostream> #include <cstring> #include "cow.h" using namespace std; Cow::Cow() { name[0] = '