第八章
练习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 }
1 istream& func(istream &is) 2 { 3 string buf; 4 while (is >> buf) 5 cout << buf << endl; 6 is.clear(); 7 return is; 8 }