View Single Post
Old Jan 15th, 2007, 3:37 PM   #10
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
dont do assignments in a while statment like that. the only thing that should be going on in the while(...) is a boolean test condtion.
int i = 0;
while (i < 10)
{
   myArray [i] = i;
   ++i;
}
Please send me the code that performs this function with a boolean test.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote