void Lesson6() { Demo t; t.a = 11; t.b = 22; cout << t.do_something() << endl; }
int _tmain(int argc, _TCHAR* argv[]) { cout << endl; Demo t; t.setA(11); t.setB(22); t.setB(22); cout << endl; cout << t.do_something() << endl; return 0; }
void Lesson6() { Demo t; t.a = 11; t.b = 22; cout << t.do_something() << endl; }
int _tmain(int argc, _TCHAR* argv[]) { cout << endl; Demo t; t.setA(11); t.setB(22); t.setB(22); cout << endl; cout << t.do_something() << endl; return 0; }