for with vector code example
Example: for loop vector
for (auto i = v.begin(); i != v.end(); i++)
{
std::cout << *i << endl;
}
for (auto i = v.begin(); i != v.end(); i++)
{
std::cout << *i << endl;
}