#include <iostream>
#include <iterator>
#include <set>
using namespace std;
int main() {
int a[] = { 8,7,8,9,6,2,1 };
// 在此处补充你的代码
set<int> v(a, a + 7);
ostream_iterator<int> o(cout, " ");
copy(v.begin(), v.end(), o);
return 0;
}
C++程序设计 第8周 编程题1#
最新推荐文章于 2020-12-15 20:59:53 发布