[ create a new paste ] login | about

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

C++, pasted on Jul 22:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
 
void print(char c, int x)
{
	std::cout << 'a';
}
 
void print(char c, double x)
{
	std::cout << 'b';
}
 
void print(char c, float x)
{
	std::cout << 'c';
}
 
int main()
{
	print('x', 5.5);
}


Output:
1
b


Create a new paste based on this one


Comments: