#include<iostream>
#include<vector>
using namespace std;
#include<functional>
#include<string>
#include<algorithm>
//查找算法 adjacent_find
//查找内置数据类型
void test01()
{
vector<int>v;
v.push_back(0);
v.push_back(2);
v.push_back(0);
v.push_back(3);
v.push_back(1);
v.push_back(4);
v.push_back(3);
v.push_back(3);
vector<int>::iterator it = adjacent_find(v.begin(), v.end());
if (it == v.end())
{
cout << "没有找到相邻重复元素" << endl;
}
else
{
cout << "找到了相邻重复元素" << endl;
}
};
void test02()
{
}
int main()
{
test01();
test02();
system("pause");
return 0;
}