repo.or.cz
/
lcapit-junk-code.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Introduce old redir program
[lcapit-junk-code.git]
/
qt-course
/
cpp-examples
/
matematica.cpp
blob
3e3cc36a7826a4832b1d1b5be397f98273bb3aa6
1
#include <iostream>
2
3
class
Matematica
4
{
5
public
:
6
int
soma
(
int
a
,
int
b
)
7
{
8
return
a
+
b
;
9
}
10
11
int
soma
(
int
a
,
int
b
,
int
c
)
12
{
13
return
a
+
b
+
c
;
14
}
15
16
int
subtrai
(
int
a
,
int
b
)
17
{
18
return
a
-
b
;
19
}
20
21
int
subtrai
(
int
a
,
int
b
,
int
c
)
22
{
23
return
a
-
b
-
c
;
24
}
25
26
int
multiplica
(
int
a
,
int
b
)
27
{
28
return
a
*
b
;
29
}
30
31
int
multiplica
(
int
a
,
int
b
,
int
c
)
32
{
33
return
a
*
b
*
c
;
34
}
35
};
36
37
int
main
(
void
)
38
{
39
Matematica mat
;
40
41
return
mat
.
soma
(
1
,
2
);
42
}