Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 8 Votes - 4.63 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Video Tutorials [OMG ELEVEN!!!!]
Author Message
MrBigzy Offline
Senior Member

Posts: 616
Joined: Mar 2011
Reputation: 8
Post: #62
RE: Video Tutorials [OMG ELEVEN!!!!]
(05-04-2011 08:32 PM)Simpanra Wrote:  for (int i = 1; i > 0 && i < 5; i++) <---- what on earth does this do? xD

for (int x = 1; x > 0 && x < 5; x++) <---- and again?

First one: it does whatever is in the for-loop for the values of i 1-4.
Second one: same thing but for x.

Basically, you read these for loops like this: for i starting at 1, when i is greater than 0 AND i is smaller than 5, do the loop and iterate i 1 time at the end of the loop and repeat (i++ means i plus 1).
(This post was last modified: 05-04-2011 08:57 PM by MrBigzy.)
05-04-2011 08:52 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Video Tutorials - HumiliatioN - 04-25-2011, 12:27 AM
RE: Video Tutorials - laser50 - 04-25-2011, 12:29 AM
RE: Video Tutorials - Glouki - 04-25-2011, 12:56 AM
RE: Video Tutorials - Russ Money - 04-25-2011, 12:56 AM
RE: Video Tutorials - Anxt - 04-25-2011, 02:47 AM
RE: Video Tutorials - Droopy - 04-25-2011, 03:08 AM
RE: Video Tutorials - Anxt - 04-25-2011, 03:12 AM
RE: Video Tutorials - Simpanra - 04-25-2011, 11:39 AM
RE: Video Tutorials [TEN!!!!!!!] - Kyle - 05-04-2011, 12:15 AM
RE: Video Tutorials [OMG ELEVEN!!!!] - MrBigzy - 05-04-2011 08:52 PM



User(s) browsing this thread: 1 Guest(s)