-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnr_mare.h
39 lines (33 loc) · 1.12 KB
/
nr_mare.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef NR_MARE_H_INCLUDED
#define NR_MARE_H_INCLUDED
#pragma once
#include <iostream>
#include "lista.h"
class nr_rational;
class nr_mare
{
bool semn;
lista nr;
public:
nr_mare();
nr_mare(const nr_mare &);
nr_mare operator= (const nr_mare &);
nr_mare operator= (const int &);
bool operator== (const nr_mare &);
bool operator< (const nr_mare &);
bool operator<= (const nr_mare &);
nr_mare operator+ (nr_mare );
nr_mare operator- (nr_mare );
nr_mare operator* (nr_mare );
nr_mare operator/ (nr_mare );
nr_mare operator% (nr_mare );
nr_mare gcd (nr_mare );
nr_mare max_abs (nr_mare );
void lista_div( );
friend std::istream & operator >> (std::istream &, nr_mare &);
friend std::ostream & operator << (std::ostream &, const nr_mare &);
friend class nr_rational;
friend std::istream & operator >> (std::istream &, nr_rational &);
friend std::ostream & operator << (std::ostream &, const nr_rational &);
};
#endif // NR_MARE_H_INCLUDED