64,639
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include<vector>
using namespace std;
using std::vector;
int main() {
vector<int> v1{ 0, 1 };
vector<int> v2{ 2, 3 };
auto p1 = v1.begin();
auto p2 = p1++;
auto p3 = v2.begin();
auto p4 = p3++;
cout << *p1 <<" " <<*p2<<" "<< *p3 <<" "<<*p4<< endl;
//cout << *(v1.begin()) << " " << *(v2.begin()) << endl;
system("pause");
return 0;
}