Subj : Re: Terrible trouble To : borland.public.cpp.borlandcpp From : "Peter Strömberg" Date : Mon Jul 07 2003 06:02 am "b" wrote in news:3f0954c1$1@newsgroups.borland.com: > in this case: > for(int r =0; r<=EditH->GetTextLen() - 1; ++r) // ++r > { > this is the first loop... now r is 0 or 1? > } > > while in this case: > for(int r =0; r<=EditH->GetTextLen() - 1; r++) // r++ > { > this is the first loop... now r is 1? > } for(A;B;C) D; is the same as A; while(B) { D; C; } -- Peter Strömberg C2K2 C2K3 ISCCIV02 .