Skip to content

Commit

Permalink
It is best to use and in 10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pezy committed Dec 9, 2014
1 parent f790448 commit 8d334aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ch10/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Chapter 10. Generic Algorithms

##[Exercise 10.1 and 10.2](ex10_1_2.cpp)
2 changes: 1 addition & 1 deletion ch10/ex10_1_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int main()
//! Exercise 10.1
std::vector<int> v{1,2,3,4,5,6,6,6,2};
std::cout << "ex 10.01: "
<< std::count(v.begin(), v.end(), 6)
<< std::count(v.cbegin(), v.cend(), 6)
<< std::endl;

//! Exercise 10.2
Expand Down

0 comments on commit 8d334aa

Please sign in to comment.