Skip to content

Commit

Permalink
update Exercise 8.1
Browse files Browse the repository at this point in the history
change "istream" into "std::istream"
  • Loading branch information
justoy committed Dec 30, 2015
1 parent da92b19 commit 2f0adba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch08/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
>Write a function that takes and returns an istream&. The function should read the stream until it hits end-of-file. The function should print what it reads to the standard output. Reset the stream so that it is valid before returning the stream.
```cpp
istream& func(istream &is)
std::istream& func(std::istream &is)
{
std::string buf;
while (is >> buf)
Expand Down

0 comments on commit 2f0adba

Please sign in to comment.