View Single Post
  #2 (permalink)  
Old October 22nd, 2006, 03:31 AM
woldemar woldemar is offline
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to woldemar
Default

Well, you may think about "for" statement as about such construction

your:

for(int i=0;i<10;i++)
{
   do something;
}


is:

int i=0;
while (i<10)
{
  do something;

  i++;
}

Counter is not defined within statement block.

Reply With Quote