|
|
istream_iterator <string> is (cin);
istream_iterator <string> eof;
vector<string> text;
copy( is, eof, back_inserter( text ));//运行不下去 奇怪
sort( text.begin(), text.end() );
ostream_iterator< string > os ( cout, " " );
copy( text.begin(), text.end(), os );
运行到copy就下不去了 望高人指点。。 |
|