C++ Programming Ch.7 Exercise 4 Solution
Problem: 1λ² ~ 4λ² λ¬Έμ κΉμ§ μ¬μ©λ Book ν΄λμ€λ λ€μκ³Ό κ°μ΅λλ€. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 class Book{ string title; int price, pages; public: Book(string title="", int price=0, int pages=0){ this->title = title; this->price = price; this->pages = pages; } void show() { cout << title << " " << price << "μ " << pages << " νμ΄μ§" << endl; } string getTitle() { return title; } }; λ€μ μ°μ°μ ν΅ν΄ μ± μ μ λͺ©μ μ¬μ μμΌλ‘ λΉκ΅νκ³ μ νλ€. ...