Thread: C++ Help
View Single Post
Old 06-28-2009, 11:15 AM   #3 (permalink)
Oreo
 
010011010110000101111000

Join Date: Dec 2006

Location: Leicester, England

Posts: 3,659

Oreo will become famous soon enoughOreo will become famous soon enough

Send a message via MSN to Oreo
Default Re: C++ Help

Ohhhhhhhhhhhhhhhhh

So, if i understood you right...:

Nested for loops don't all execute each time, only once the inside one is done.
So on this instance, the first time both loops will obviously execute, but the next time the 2nd for loop is not complete until [i] is 4 or greater then 4, once it is, the 1st for loop executes again and the 2nd for loop resets to 0 ?

Makes much more sense now!

Be prepared.. i might be making alot of these threads as i get further into my book :o

edit:

quick question. Sometimes the error log tells me i need to close a certain block of code with a }. But sometimes i can't find which part of the code i forgot to close, so can i just bung a } at the end of the code ? or do i need to spend ages searching through my entire code to put it in the right place..:rolleyes:

Last edited by Oreo; 06-28-2009 at 11:21 AM.
Oreo is offline