-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
28 lines (20 loc) · 746 Bytes
/
main.cpp
File metadata and controls
28 lines (20 loc) · 746 Bytes
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
#include <iostream>
#include "include/seven.h"
int main() {
Seven a("1448");
Seven b("192");
std::cout << "a = ";
a.print(std::cout) << std::endl;
std::cout << "b = ";
b.print(std::cout) << std::endl;
Seven summa = a.plus(b);
Seven raznost = a.minus(b);
std::cout << "summa a + b = ";
summa.print(std::cout) << std::endl;
std::cout << "raznost a - b = ";
raznost.print(std::cout) << std::endl;
std::cout << "a equals b: " << (a.eq(b) ? "true" : "false") << std::endl;
std::cout << "a greater b: " << (a.greater(b) ? "true" : "false") << std::endl;
std::cout << "a less b: " << (a.less(b) ? "true" : "false") << std::endl;
return 0;
}