I'm new to c++ and recently shifted from python. Can anyone explain me what should be the actual code in c++, if we want to print items of a list in for loop. For example: in python. We do something like.
sample_list = ['you', 'are','awesome']
for i in sample_list:
print(i)
In C++ its something like.
for(initialisation, condition, updation )
{
Your code
}
But there is no update We just want to get items from a list.
How can I do same in C++?