Website Summary Files Commits Branches @commit @diff @stats
path: root / pract KN / week7 / solution / player.h
diff options
context:
space:
mode:
Commitaf6df8ee13421602442ede2cfab52dd70788b588 (patch)
Author
 Stoycho Kyosev <68247567+stoychoX@users.noreply.github.com>
2022-04-06 16:38:07 +0300
Committer
 GitHub <noreply@github.com>
2022-04-06 16:38:07 +0300
Filesa00f332f9990099d534eaaa728f8b705b5d647b3 /pract KN/week7/solution/player.h
Object-oriented_programming_FMI-af6df8ee13421602442ede2cfab52dd70788b588.tar
Object-oriented_programming_FMI-af6df8ee13421602442ede2cfab52dd70788b588.tar.gz
Object-oriented_programming_FMI-af6df8ee13421602442ede2cfab52dd70788b588.zip
Parentb68542a9ffa71c51a7481df8fa12e7fc41c7ab77 (diff)
Delete pract KN/week7/solution directory
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