12-06-05-2.cpp

来自「more efftive 代码」· C++ 代码 · 共 13 行

CPP
13
字号
#include <iostream>#include <iterator>#include <functional>#include <algorithm>using namespace std;int main() {  int A[8] = {7, 7, 1, 4, 6, 6, 6, 3};    int *new_end = unique(A, A + 8, equal_to<int>());  copy(A, new_end, ostream_iterator<int>(cout, "\n"));}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?