Thread: Help on basics
View Single Post
Old Feb 26th, 2006, 5:46 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Pseudocode:
while (noErrors)
   Printblock (
   Tasks:
      1) Produce guest list
      2) Organize finance
      3) Books
      4) Sort
   }
   Print (Select task to perform:)
   Get (userinput)
   switch (userinput) 
   {
      case 1: guestList (); break;
      case 2: finance (); break;
      case 3: books (); break;
      case 4: sort (); break;
      default: Print ("Bad input");
                 noErrors = false;
   }
}
__________________
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