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.
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 ?