[ create a new paste ] login | about

Link: http://codepad.org/cHOinLTW    [ 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.5u);
}


Output:
1
Line 12: error: invalid suffix "u" on floating constant


Create a new paste based on this one


Comments: