Introduce old redir program
[lcapit-junk-code.git] / qt-course / cpp-examples / matematica.cpp
blob3e3cc36a7826a4832b1d1b5be397f98273bb3aa6
1 #include <iostream>
3 class Matematica
5 public:
6 int soma(int a, int b)
8 return a + b;
11 int soma(int a, int b, int c)
13 return a + b + c;
16 int subtrai(int a, int b)
18 return a - b;
21 int subtrai(int a, int b, int c)
23 return a - b - c;
26 int multiplica(int a, int b)
28 return a * b;
31 int multiplica(int a, int b, int c)
33 return a * b * c;
37 int main(void)
39 Matematica mat;
41 return mat.soma(1, 2);