Skip to content

Commit

Permalink
added test case for 5.14
Browse files Browse the repository at this point in the history
  • Loading branch information
pezy committed Feb 21, 2016
1 parent 4c3d157 commit 146d097
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ch05/ex5_14.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ int main()
cout << "the word '" << max_repeat_word << "' occurred " << max_repeat_times << " times" << endl;
}
}

// test case
// how now now now brown cow cow : the word 'now' occurred 3 times
// how how now now cow cow : the word 'how' occurred 2 times
// how how how : the word 'how' occurred 3 times
// (nothing, enter Ctrl + Z/D, EOF) : no word was repeated.

0 comments on commit 146d097

Please sign in to comment.