Introduce old redir program
[lcapit-junk-code.git] / qt-course / cpp-examples / mat-template.cpp
blobced32e902fd6f7dfd5ff748fb3e08d2ef29a7e21
1 #include <iostream>
3 template<class T>
4 class Matematica
6 public:
7 T soma (T a, T b)
9 return a + b;
12 T soma (T a, T b, T c)
14 return a + b + c;
17 T subtrai (T a, T b)
19 return a - b;
22 T subtrai (T a, T b, T c)
24 return a - b - c;
28 int main(void)
30 Matematica<int> mat;
32 return mat.soma(10, 2);