Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef LIST_H
- #define LIST_H
- #include <string.h>
- #include <iostream>
- #include <string.h>
- #include <stdio.h>
- #include <cstring>
- typedef int Data;
- class Cislo{
- int size;
- Data *cifry;
- char znamenko;
- void init();
- void freeMemory();
- void scitaci_pomocnik1(Cislo &a, Cislo &b);
- void scitaci_pomocnik2(Cislo &a, Cislo &b);
- public:
- Cislo();
- Cislo(const Cislo &other);
- Cislo(Cislo &&other);
- ~Cislo();
- void naplnit(const char *d);
- void print();
- void copyFrom(const Cislo &source);
- void spocitejVelikost();
- Cislo& operator=(const Cislo &rhs);
- Cislo& operator=(Cislo &&rhs);
- Cislo& operator=(const char *d);
- friend bool operator<(const Cislo &a, const Cislo &b);
- friend bool operator==(const Cislo &a, const Cislo &b);
- friend Cislo operator+(Cislo &a, Cislo &b);
- friend bool operator>(const Cislo &a, const Cislo &b);
- friend Cislo operator-(Cislo &a);
- friend Cislo operator-(Cislo &a,Cislo &b);
- Cislo absolut(const Cislo &a);
- friend Cislo operator+(Cislo &a, int b);
- friend Cislo operator*(Cislo &a, Cislo &b);
- friend Cislo operator/(Cislo &a, Cislo &b);
- friend Cislo operator*(Cislo &a, int b);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement