consider this

vector<int> :: iterator it;
int i;
vector<int> A;
for (i=0;  i<5;  i++){
       A.push_back(i);
}

for(it = A.begin(); it != A.end(); it++){
cout<<*it;
}

vector<int> :: iterator it;
int i;
vector<int> A;
for (i=0; i<5; i++){
A.push_back(i);
}

for(it = A.begin(); it != A.end(); it++){
cout<<*it;
}

>consider this
Okay. Did you have a question?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.