Discuss link: Help with introduction to C++ with Game Development (devmaster.net)
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?
Please log in or register to post a reply.
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