• sort默认从小到大排序,逆序需要用greater()
  • copy(arr.begin(), arr.end(), ostream_iterator(cout, "\n")) ostream_iterator的使用,分割的需要string,如果用char会报错