CS51 - Fall 2009 - Lecture 9

  • Summary on different types of variables/parameters

  • local variables

  • While loops
  • Syntax:
                while ( < ... condition ... > ) {
    
                     // body of loop containing statements to be executed
    
                }
            
  • Railroad
  • WhileRailroad
  • Switch statement

  • Active Objects
  • PatheticPong
  • animation as a while loop with a pause