Mooophy / Cpp-Primer

C++ Primer 5 answers
Creative Commons Zero v1.0 Universal
8.12k stars 3k forks source link

ex2_42_1.cpp question #411

Open shiyilin890 opened 8 years ago

shiyilin890 commented 8 years ago

Will you also post the code for "ex2_42.h"? Thanks! Because in the answer you provided, there are lines like "book.CalcRevenue" and "book.Print()", looks like there are functions in this headfile? Cpp-Primer/ch02/ex2_42_1.cpp

pezy commented 8 years ago

https://github.com/Mooophy/Cpp-Primer/blob/master/ch02/ex2_42.h