Skip to content

Commit

Permalink
Merge branch 'jieniyimiao-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
pezy committed Jun 28, 2015
2 parents a155d5b + 597d504 commit d16aa50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ch14/ex14_05.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
std::istream& operator>>(std::istream& in, Book& book)
{
in >> book.no_ >> book.name_ >> book.author_ >> book.pubdate_;
if(!in)
book=Book();
return in;
}

Expand Down

0 comments on commit d16aa50

Please sign in to comment.