Quote Originally Posted by Boksha
Code:
int i=0;
while (i<10){
  dostuff();
  i++;
}
with
Code:
for(int i=0; i<10; i++){
  dostuff();
}
I dunno ... the only problem I have with while() things for that kind of operations is that the itterating value has to be reset to 0 every time. other than that .... it only really depends on how you lay out your code for how cluttered it is ... eg:

Code:
int i = 0;
while ( i<var )
{
   //do stuff
   i++;
}
i=0;
looks fine to me anyways. nice indenting and whatnot go a long way in my opinion.