Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. #ifndef LIST_H
  2. #define LIST_H
  3. #include <string.h>
  4.  
  5. #include <iostream>
  6. #include <string.h>
  7. #include <stdio.h>
  8. #include <cstring>
  9.  
  10. typedef int Data;
  11.  
  12. class Cislo{
  13. int size;
  14. Data *cifry;
  15. char znamenko;
  16. void init();
  17. void freeMemory();
  18. void scitaci_pomocnik1(Cislo &a, Cislo &b);
  19. void scitaci_pomocnik2(Cislo &a, Cislo &b);
  20. public:
  21. Cislo();
  22. Cislo(const Cislo &other);
  23. Cislo(Cislo &&other);
  24. ~Cislo();
  25. void naplnit(const char *d);
  26. void print();
  27. void copyFrom(const Cislo &source);
  28. void spocitejVelikost();
  29. Cislo& operator=(const Cislo &rhs);
  30. Cislo& operator=(Cislo &&rhs);
  31. Cislo& operator=(const char *d);
  32. friend bool operator<(const Cislo &a, const Cislo &b);
  33. friend bool operator==(const Cislo &a, const Cislo &b);
  34. friend Cislo operator+(Cislo &a, Cislo &b);
  35. friend bool operator>(const Cislo &a, const Cislo &b);
  36. friend Cislo operator-(Cislo &a);
  37. friend Cislo operator-(Cislo &a,Cislo &b);
  38. Cislo absolut(const Cislo &a);
  39. friend Cislo operator+(Cislo &a, int b);
  40. friend Cislo operator*(Cislo &a, Cislo &b);
  41. friend Cislo operator/(Cislo &a, Cislo &b);
  42. friend Cislo operator*(Cislo &a, int b);
  43.  
  44. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement