1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| #include "this_test.h" #include<iostream> #include<complex> using namespace std;
void ThisTest::func1(int a, int b) { cout << this << endl; cout << this->a << endl; this->a = a; cout << this->a << endl; a = b; cout << a << endl; cout << (*this).a << endl; }
void ThisTest::func2() { }
|