#include<iostream>
#include<vector>
using namespace std;
void print(const vector<int>& v)
{
for(auto i=v.begin();i!=v.end();i++)
{
cout << *i << " ";
}
cout << endl;
}
int main()
{
vector<int> a = {1,2,3,4,5,6,7,8,9,10};
print(a);
return 0;
}
#include<vector>
using namespace std;
void print(const vector<int>& v)
{
for(auto i=v.begin();i!=v.end();i++)
{
cout << *i << " ";
}
cout << endl;
}
int main()
{
vector<int> a = {1,2,3,4,5,6,7,8,9,10};
print(a);
return 0;
}
Comments
Post a Comment