v0.14.0
Loading...
Searching...
No Matches
simple.cpp
Go to the documentation of this file.
1#include <iostream>
2using namespace std;
3
4void temp(int x, int y = 10) { cout << x << " " << y << endl; }
5
6// template<class T, int Dim>
7// class helper;
8
9// template<class T>
10// class helper<T,1>
11// {
12// public:
13// helper(T temp[1], T a)
14// {
15// temp[0]=a;
16// }
17// };
18
19// template<class T, int Dim>
20// class simp
21// {
22// public:
23// T temp[Dim];
24// simp(T a)
25// {
26// helper<T,Dim>(temp,a);
27// }
28// };
29
30int main()
31{
32 temp(10);
33 temp(10, 20);
34
35 // simp<int,1> ttx(12);
36 // cout << ttx.temp[0] << endl;
37}
void temp(int x, int y=10)
Definition simple.cpp:4
int main()
Definition simple.cpp:30