From 6ed9a9699997a2853ec1c9e91747c251e5cfc97b Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 15 Jun 2014 03:50:43 +0200 Subject: damn --- ccc/class.cc | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 ccc/class.cc (limited to 'ccc/class.cc') diff --git a/ccc/class.cc b/ccc/class.cc deleted file mode 100644 index b493b51..0000000 --- a/ccc/class.cc +++ /dev/null @@ -1,31 +0,0 @@ -#include - -using namespace std; - - -class A { - public: - A(int a):_a(a) {} - int geta() { - return _a; - } - static int _b; - private: - int _a; -}; - -int A::_b = 0; - -int main(void){ - A a(2); - A *b = new A(2); - cout << b->geta() << endl; - cout << b->_b << endl; - cout << a._b << endl; - A::_b = 42; - cout << b->geta() << endl; - cout << b->_b << endl; - cout << a._b << endl; - return 0; -} - -- cgit v1.2.3