c++11 new feature range based for loop
This video tutorial explains the range based for loop in c++.
You will learn how to use the new form of for loop added in the c++11 standard on the arrays, objects and ranges with examples.
source code for this tutorial
#include <iostream>
using namespace std;
int main()
{
for( int var : {66,55,22,88,99,77,44,11,00} ){
cout << var << endl;
}
return 0;
}