Pseudocode

Pseudocode is basically structured natural language. ``Structured'' means there are only a few basic constructs. However, a construct can be completely embedded in another construct.

The basic constructs are listed as follows:

The ability to embed constructs makes pseudocode ``structured''. This is one advantage of pseudocoding over flowcharting. Furthermore, it is possible to write pseudocode without a special editor. Best of all, programmers can insert complete sections of pseudocode as comments in most programming languages. The last point helps programmers build programs that are consistent with the system specifications.



Subsections
Copyright © 2005-05-16 by Tak Auyeung