[ create a new paste ] login | about

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

C++, pasted on Sep 9:
1
2
3
4
5
6
7
8
9
class item
{
public:
    item(unsigned int no) {}  // item takes only +ve value
};

int main() {
   item i(-5);
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: