#include <iostream>
  #include
<iterator>
  #include
<algorithm>
  
using namespace std ;  

  ostream_iterator output(cout,
" ") ; // 关联cout,设置分隔符
  copy(vec.begin(), vec.end(), output) ;  // 元素拷贝到ostream_iterator所指向的对象cout
cout <<endl ; // 别忘了加一个换行

相关文章:

  • 2021-06-13
  • 2022-12-23
  • 2022-03-11
  • 2021-07-18
猜你喜欢
  • 2021-06-22
  • 2022-12-23
  • 2021-08-07
  • 2021-10-12
  • 2022-01-28
  • 2022-12-23
相关资源
相似解决方案