-
difference between
-
ateallow seek to other position, whileappnot. When usingappall writes are preceeded by seeks.
ios::ate and
ios::app
stringstream iss(string("hello world"));
vector<string> words;
// stream -> container
copy(istream_iterator<string>(iss), istream_iterator<string>(), back_inserter(words));
// container -> stream
copy(words.begin(), words.end(), ostream_iterator<string>(cout, " "));
560

被折叠的 条评论
为什么被折叠?



