第八章

练习8.1

1 istream& func(istream &is)
2 {
3     string buf;
4     while (is >> buf)
5         cout << buf << endl;
6     is.clear();
7     return is;
8 }

 

posted @ 2018-03-12 20:27  eemjwu_boy  阅读(94)  评论(0编辑  收藏  举报