13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

executes an additional statement if nothing was selected from the list. TheCASE statement follows this syntax:CASE expression OFcaseclause 1--~--ENDOTHERWISEstatementThe case clause shown in this diagram has the following form:constant ,___~ ........statementThe controlling expression may have any scalar type-integer, CHAR,boolean, subrange, or user-defined. It should be capable of returning thevalue of any of the constants in the case clause.The constants in the case clause must have the same scalar type as thecontrolling expression.Any of the controlled statements in the case clause or the default statementfollowing OTHERWISE may be single statements or compoundBEGIN ... END constructions containing other statements.The easiest way to understand the CASE statement is to look at anexample.111-118Chapter 7: Program Controls

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!