0
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?

0
165 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
}
}