//3.36#include<iostream>#include<string>#include<vector>usingnamespace std;intmain(){
vector<int> vec1 ={0,1,2,3,4,5,6,7,8,9};
vector<int> vec2 ={0,1,2,3,4,5,6,7,8,10};if(vec1 == vec2)//vector对象里的元素是内置类型时(int/char)可以直接比较是否相等
cout <<"The two vectors are equal."<< endl;else
cout <<"The two vectors are not equal."<< endl;system("pause");return0;}