Iterator in C++ STL
//Iterator declaration Systems.
#include <iostream>
using namespace std;
int main()
{
vector v; int n; cin>>n;
for (int i = 0; i < n; ++i)
{ int x;cin>>x; v.push_back(x); } // 1st approch /*vector :: iterator it = v.begin();
for (it = v.begin(); it!=...
blog.mdshuvo.me1 min read
Adnanul Islam
I am a programmer.I love coding. My hobby is problem solving.
We may apply it for each as well, and I think it to be simpler.