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 Pet | |
{ | |
public: // модификатор доступа | |
char* type; //вид животного | |
char* name; // кличка |
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 Tablet //планшет | |
{ | |
public: // модификатор доступа | |
char* model; // модель планшета | |
char* type; //вид планшета (iOS; Android; Windows) |
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 Book //класс книга | |
{ | |
public: // модификатор доступа | |
char* name; // модель планшета | |
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; // имя игрушки |
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 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 "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"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"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"Date.h" | |
void Date::SetDay(uint day) | |
{ | |
if (day > 0 && day <= AllowedDay()) | |
this->day = day; | |
} | |
void Date::SetMonth(uint month) | |
{ |
OlderNewer