Help with introduction to C++ with Game Development

62729b540737c9893b8005b272fa96fa
0
Leaf 101 Oct 05, 2013 at 12:13

Discuss link: Help with introduction to C++ with Game Development (devmaster.net)

Hello

I cant figure out how the nested loop is supposed to be created. all i have managed is getting the tanks in a diagonal line. does anyone have a clue on how to do it?

1 Reply

Please log in or register to post a reply.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 167 Oct 06, 2013 at 03:57

A pair of nested for-loops look something like this:

for (int i = 0; i < something; ++i)
{
    for (int j = 0; j < something_else; ++j)
    {
        // do some stuff
    }
}