[ create a new paste ] login | about

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

C++, pasted on Apr 15:
1
2
3
4
5
6
7
8
9
10
11
12
#include <cstdio>
class A{
public:
	A& operator++()   { return *this; }
	A& operator++(int){ return *this; }
	A  operator+(A& t){ return *this; }
};

int main(){
	A a, b;
	a+++++b;
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: