This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"Group.h" | |
Group::Group() | |
{ | |
group_size = 0; | |
group_name = nullptr; | |
group_spec = nullptr; | |
course_num = nullptr; | |
students = nullptr; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"Vector.h" | |
Vector::Vector() | |
{ | |
count = 0; | |
capacity = 10; | |
arr = new int[capacity]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"Time.h" | |
void Time::SetHour(uint hour) | |
{ | |
if (hour <24) | |
this->hour = hour; | |
} | |
void Time::SetMin(uint min) | |
{ | |
if (min < 60) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"Date.h" | |
void Date::SetDay(uint day) | |
{ | |
if (day > 0 && day <= AllowedDay()) | |
this->day = day; | |
} | |
void Date::SetMonth(uint month) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"String.h" | |
String::String(const char *str, uint capacity) | |
{ | |
if (!str) return; | |
if (capacity<strlen(str) + 1) | |
this->capacity = strlen(str) + 1; | |
this->capacity = capacity; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include"Bank.h" | |
using namespace std; | |
uint Bank::mainBall = 0; | |
Bank::Bank() | |
{ | |
uint fillBall = 0; | |
ushort sizeFil = 0; | |
uint sizeDep = 0; | |
uint sizeCred = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Adress.h" | |
Adress::Adress() :Adress(nullptr, nullptr, nullptr) | |
{ | |
} | |
Adress::Adress(char*home, char*street, char*city) | |
{ | |
SetHome(home); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
class Flashdrive //класс флешка | |
{ | |
public: // модификатор доступа | |
char* kind; //разновидность | |
char* colour; // цвет |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
class Plant //класс растение | |
{ | |
public: // модификатор доступа | |
char* kind; //разновидность | |
char* colour; // цвет |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
class Toy //класс игрушка | |
{ | |
public: // модификатор доступа | |
char* kind; //разновидность | |
char* name; // имя игрушки |