cppcourse/headers/MyType.h

15 lines
301 B
C
Raw Permalink Normal View History

2022-11-08 15:41:38 +01:00
#ifndef MYTYPE_H
#define MYTYPE_H
#include <string>
struct MyType{
std::string name;
unsigned age;
MyType(std::string n, unsigned a);
~MyType();
MyType(const MyType &t);
MyType& operator= (const MyType &t);
MyType(MyType &&t);
MyType& operator= (MyType &&t);
};
#endif