Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
5
Добавлен:
18.08.2019
Размер:
1.03 Кб
Скачать
#ifndef PRECOMPILER_H_INCLUDED
#define PRECOMPILER_H_INCLUDED
#include <iostream>
#include <cstring>
#include <windows.h>
using namespace std;

class Tstring
{
private:
    char *s;
    size_t size;
public:
    Tstring ();
    Tstring (char *s);
    ~Tstring(){delete []s;}
    Tstring(const Tstring &obj);

    Tstring  operator +  (const Tstring& obj);
    Tstring& operator += (const Tstring& obj);//комбинирование
    Tstring& operator =  (const Tstring& obj);//присваивание
    Tstring  operator != (const Tstring& obj);//слияние с исключением повторяющихся
    Tstring  operator [] (size_t i);
    bool operator >  (const Tstring& obj);
    bool operator <  (const Tstring& obj);
    bool operator >= (const Tstring& obj);
    bool operator <= (const Tstring& obj);
    bool operator == (const Tstring& obj);

friend size_t length(Tstring d);
friend ostream& operator << (ostream& t, Tstring  d);
friend istream& operator >> (istream& t, Tstring& d);
};

#endif // PRECOMPILER_H_INCLUDED
Соседние файлы в папке Copynstructor_and_Polimorphism
  • #
    18.08.20191.42 Кб4Copynstructor_and_Polimorphism.cbp
  • #
    18.08.2019570 б4Copynstructor_and_Polimorphism.depend
  • #
    18.08.20191.36 Кб4Copynstructor_and_Polimorphism.layout
  • #
    18.08.20191.5 Кб4main.cpp
  • #
    18.08.20191.36 Кб4precompiler.cpp
  • #
    18.08.20191.03 Кб5precompiler.h