Website Summary Files Commits Branches @commit @diff @stats
path: root / pract KN / week7 / solution / player.h
diff options
context:
space:
mode:
1 files changed, 0 insertions, 54 deletions
-rw-r--r--pract KN/week7/solution/player.h54
diff --git a/pract KN/week7/solution/player.h b/pract KN/week7/solution/player.h
deleted file mode 100644
index 134e0d6..0000000
--- a/pract KN/week7/solution/player.h
+++ /dev/null
@@ -1,54 +0,0 @@
-#ifndef PLAYER_HEADER
-#define PLAYER_HEADER
-#include"betType.h"
-
-#pragma warning(disable : 4996)
-
-class player {
-private:
- char* name;
- char* password;
- int age;
- double money;
-
- void free();
-
- void copy(const player& other);
-
- void showHelp() const;
-
- char* copyDynamic(const char* arg) const;
-
-public:
- player() : name(nullptr), password(nullptr), age(0), money(0) {}
-
- player(const char* name,const char* pass, int age, double money);
-
- player(const player& other);
-
- player& operator=(const player& other);
-
- void setName(const char* newName);
-
- void setAge(int newAge);
-
- const char* getName() const;
-
- void changePassword(const char* newPass, const char* oldPass);
-
- void updateMoney(double bet, double rate);
-
- int getAge() const;
-
- double getMoney() const;
-
- bool isBroke() const;
-
- bool comparePassword(const char* pwd) const;
-
- betType makeBet() const;
-
- ~player();
-};
-
-#endif