CSC161 2011S Imperative Problem Solving

Class 27: Program Correctness and assert

Back to Interactive Testing. On to Macros.

This outline is also available in PDF.

Held: Wednesday, 9 March 2011

Summary: We consider issues of program correctness and ways in which C's assert macro can help.

Related Pages:

Notes:

Overview:

Programming by Contract

Because we focus on preconditions and postconditions in 151, you may not have found much new in the reading.

Still, it is useful to keep a number of things in mind.

One then has the question of how to deal with preconditions and postconditions.

What should you do if a precondition is not met?

Additional notes

assert

Lab

Back to Interactive Testing. On to Macros.

Disclaimer: I usually create these pages on the fly, which means that I rarely proofread them and they may contain bad grammar and incorrect details. It also means that I tend to update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.

This document was generated by Siteweaver on Tue May 10 10:34:31 2011.
The source to the document was last modified on Wed Jan 5 12:52:14 2011.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CSC161/2011S/Outlines/outline.27.html.

Samuel A. Rebelsky, rebelsky@grinnell.edu