[ create a new paste ] login | about

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

bikeshedder - C++, pasted on Feb 2:
1
2
3
4
5
6
7
8
9
10
11
12
class A { };

class B {
public:
    ::A& A() { return *a; }
private:
    ::A* a;
};

int main(int argc, char *argv[]) {
    std::cout << "It works!" << std::endl;
}


Output:
1
It works!


Create a new paste based on this one


Comments: