post #1 of 1
Thread Starter 
Need help on how to integrate the do...while. Is the way I have it setup alright, or do I need to add more?


Code:
for (int i = 0; i < 3; i++)
{
     do
     {
     buildGrid();

          if (noZeroes == 0)
          {
          zoning();
          continueLoop = false;
          }
          else
          noZeroes = 0;

     } while (continueLoop);

continueLoop = true;
}

FYI 'continueLoop' is set to true before entering the do...while
Realm
(14 items)
 
  
CPUMotherboardRAMHard Drive
i7-4770K ASUS Maximus VI Extreme Patriot Viper Xtreme Intel 730 SSD 
Hard DriveCoolingOSMonitor
Western Digital VelociRaptor Corsair H100i Win 8.1 Acer X223W 
KeyboardPowerCaseMouse
HHKB Professional 2 Corsair AX1200i Danger Den Q20 Razer Mamba 
Mouse Pad
Razer Manticore 
  hide details  
Reply
Realm
(14 items)
 
  
CPUMotherboardRAMHard Drive
i7-4770K ASUS Maximus VI Extreme Patriot Viper Xtreme Intel 730 SSD 
Hard DriveCoolingOSMonitor
Western Digital VelociRaptor Corsair H100i Win 8.1 Acer X223W 
KeyboardPowerCaseMouse
HHKB Professional 2 Corsair AX1200i Danger Den Q20 Razer Mamba 
Mouse Pad
Razer Manticore 
  hide details  
Reply