#include <iostream>
#include<vector>
using namespace std
;
int main()
{
vector
<int>myprint
;
for(int i
=1;i
<11;i
++)
myprint
.push_back(i
);
for(auto & a
: myprint
)
cout
<<a
<<' ';
cout
<<endl
;
for(auto a
= myprint
.begin();a
!=myprint
.end();++a
)
cout
<<*a
<<' ';
cout
<<endl
;
for(vector
<int>::iterator a
=myprint
.begin();a
!=myprint
.end();++a
)
cout
<<*a
<<' ';
cout
<<endl
;
return 0;
}
转载请注明原文地址: https://yun.8miu.com/read-1204.html