摘要:
class MyClass{ int value;public: MyClass(int i=10) { value = i; cout << "Constructor called." << endl; } MyClass( MyClass& p) { p.value = 11; value = 阅读全文
摘要:
class Room{ int room_no; double length; double width;public: Room(int the_room_no, double the_length, double the_width) :room_no(the_room_no), length( 阅读全文