C++ Programming Ch.7 Exercise 3 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; } }; λ€μ μ°μ°μ ν΅ν΄ κ³΅μ§ μ± μΈμ§λ₯Ό νλ³νλλ‘ ! μ°μ°μλ₯Ό μμ±νλΌ. ...