Mooophy / Cpp-Primer

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

ex3_17.cpp #681

Open mgonzalezm opened 6 years ago

mgonzalezm commented 6 years ago

Just an comment.

I don't know if its important to you, but in strictly pedagogical sense, you shouldn't use some instruction or concepts of the language to solve the excercises, if those concepts hasn't been presented in the book at that point.

For example in excercise 3.17 you use the modulo operand, but it is not introduced in the book until chapter 4.2, In excercise 3.2 you use the ternary operand : ? etc.

I think that someone newbie using the book to learn C++ from the first time would get confused. After all the book is aimed at beginners.

what do you think ?

pezy commented 6 years ago

Agree. I will fix it when I have time.