Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum MATERIAL {wood, wool, kevlar, steal};
- #include "stdafx.h"
- using namespace std;
- class CHandWear
- {
- public:
- bool SetColor(int newColor);
- int GetColor();
- bool SetPrice(double newPrice);
- double GetPrice();
- bool SetName(char* newName);
- char*GetName();
- bool SetMaterial(char* newMaterial);
- char*GetMaterial();
- CHandWear(int newColor, double newPrice, char* newMaterial, char* newName); //konst
- ~CHandWear(); //dest
- protected:
- int color;
- double price;
- MATERIAL material; // przykładowe użycie: material = wood || material = wool || material = kevlar || material = steal
- char name[30];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement