Skip to content

Commit

Permalink
Revert "fix ex9.40"
Browse files Browse the repository at this point in the history
This reverts commit f3701e3.
  • Loading branch information
shidenggui committed Dec 24, 2014
1 parent f3701e3 commit 4a67775
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ch09/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,12 @@ svec.resize(svec.size()+svec.size()/2); // sets capacity to at least 3/2's size.
## Exercise 9.40:
>If the program in the previous exercise reads 256 words, what is its likely capacity after it is resized? What if it reads 512? 1,000? 1,048?
read: 256 size: 384 capacity: 1024
read: 512 size: 768 capacity: 1024
read: 1000 size: 1500 capacity: 1500
read: 1048 size: 1572 capacity: 1572
|reads|capacity|
|-----|--------|
|256 |1024 |
|512 |1024 |
|1000 |1024 |
|1048 |1572 |

## [Exercise 9.41](ex9_41.cpp)

Expand Down

0 comments on commit 4a67775

Please sign in to comment.