Skip to content

Instantly share code, notes, and snippets.

View Soulstorm50's full-sized avatar

Soul Soulstorm50

View GitHub Profile
@Soulstorm50
Soulstorm50 / class Pet
Last active June 6, 2016 19:48
Homework 1_1
#include <iostream>
using namespace std;
class Pet
{
public: // модификатор доступа
char* type; //вид животного
char* name; // кличка
@Soulstorm50
Soulstorm50 / class Tablet
Created June 6, 2016 20:38
Homework 1_2_tablet
#include <iostream>
using namespace std;
class Tablet //планшет
{
public: // модификатор доступа
char* model; // модель планшета
char* type; //вид планшета (iOS; Android; Windows)
#include <iostream>
using namespace std;
class Book //класс книга
{
public: // модификатор доступа
char* name; // модель планшета
char* colour; // цвет
#include <iostream>
using namespace std;
class Toy //класс игрушка
{
public: // модификатор доступа
char* kind; //разновидность
char* name; // имя игрушки
#include <iostream>
using namespace std;
class Plant //класс растение
{
public: // модификатор доступа
char* kind; //разновидность
char* colour; // цвет
#include <iostream>
using namespace std;
class Flashdrive //класс флешка
{
public: // модификатор доступа
char* kind; //разновидность
char* colour; // цвет
@Soulstorm50
Soulstorm50 / Adress.cpp
Last active June 29, 2016 20:52
class Group
#include "Adress.h"
Adress::Adress() :Adress(nullptr, nullptr, nullptr)
{
}
Adress::Adress(char*home, char*street, char*city)
{
SetHome(home);
#include"Bank.h"
using namespace std;
uint Bank::mainBall = 0;
Bank::Bank()
{
uint fillBall = 0;
ushort sizeFil = 0;
uint sizeDep = 0;
uint sizeCred = 0;
@Soulstorm50
Soulstorm50 / String.cpp
Created July 5, 2016 20:16
class String
#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;
@Soulstorm50
Soulstorm50 / Date.cpp
Created July 12, 2016 20:26
class Date
#include"Date.h"
void Date::SetDay(uint day)
{
if (day > 0 && day <= AllowedDay())
this->day = day;
}
void Date::SetMonth(uint month)
{