[ create a new paste ] login | about

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

C++, pasted on Jan 14:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>

static class C1 {
public:
  void f() { std::cout << "C1::f()" << std::endl; }
  void g() { std::cout << "C1::g()" << std::endl; }
} Obj;

int main() {
  Obj.f();
  Obj.g();
  return 0;
}
/* end */


Output:
1
2
C1::f()
C1::g()


Create a new paste based on this one


Comments: