Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Hierom authored Apr 22, 2018
1 parent dad0574 commit 4b355a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ch03/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ vector<string> v7{ 10, "hi" }; // size:10, value:"hi"
>In the binary search program on page 112,
why did we write `mid=beg+(end-beg)/2;` instead of `mid=(beg+end) /2;`?
1. There's no operator `+` for these two iterators.
2. `(beg + end)` is meaningless and may lead to overflow for arithmetic types.
There's no operator `+` for adding two iterators.
## Exercise 3.27
>Assuming txt_size is a function that takes no arguments
Expand Down

0 comments on commit 4b355a0

Please sign in to comment.