I am new to programming and I am having a problem grasping the concept of looping an array. How do I go about doing this?

Recommended Answers

All 3 Replies

i don't have any idea about how to write Pseudo code but i think its like providing logic for the solution of the problem . try to understand the following concept of array(However i am still writing an tutorial on Array in C++, i will try to publish it whenever i have time to complete it)

for(index=0;index<size;index++)
{
    cout<<arr[index]<<endl;
}

and without loop :

cout<<arr[0];
cout<<arr[1];
cout<<arr[2];
cout<<arr[3];
cout<<arr[4];

actually loop allows us to repeat statements or a group of statements.So whenever think to execute statement(s) again and again then you should go through loop.

for more information on loop Click Here

Thank you Learner010. This has helped. It answered my question. I'm looking forward to the publication of your tutorial on Arrays.
Again, thank you ^_^

I'm looking forward to the publication of your tutorial on Arrays

i'll publish it very soon whenever i have time to complete the tutorial.

Thanx.

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.