[ create a new paste ] login | about

Link: http://codepad.org/PNFbR2Hc    [ raw code | output | fork ]

C++, pasted on Jun 6:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# include <iostream>
using namespace std;


template <typename T>void f(T a){ cout << "aaaaaaaaaaaa"; }
template <> void f(int &a){ cout << "fffffffffff"; }

int main()
{
	int bb=9;
	f(bb);
	
	return 0;
}


Output:
1
aaaaaaaaaaaa


Create a new paste based on this one


Comments: