Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pezy committed Sep 29, 2015
1 parent ba954aa commit 563cede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch06/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ more discusses: [#22](https://github.com/ReadingLab/Discussion-for-Cpp/issues/22
This loop let user input a word all the way until the word is sought.
It isn't a good use of assert. because if user begin to input a word, the `cin` would be always have content. so the `assert` would be always `true`. It is meaningless. using `assert(s == sought)` is more better.
It isn't a good use of `assert`. The `assert` macro is often used to check for conditions that “cannot happen”. But the `assert` would always happen when users input `EOF` directly. The behavior is very natural, so the check is meaningless. using `assert(!cin || s == sought)` is more better.
## Exercise 6.49
Expand Down

0 comments on commit 563cede

Please sign in to comment.