An Introduction to Data Structures with C++

Home - Contribute - References - Site Map - Contact Us
C++ Review [Variables, Functions, Pointers, Object Oriented Design, Templates, Other]
Data Structures [Preliminary, Lists, Stacks, Queues, Binary Trees, Heaps, Sorting, Searching]

assert() Function

The assert() function is located in assert.h and is useful in aborting an operation if a condition is not met. It is especially useful when debugging a program, but is also used in demonstrations. The function takes one parameter, which can be a variable or expression that evaluates to true or false. If the value is true, the program's flow continues as it normally would. If the value is false, the program is aborted, and an error message is displayed to the user.

Home - Contribute - References - Site Map - Contact Us
C++ Review [Variables, Functions, Pointers, Object Oriented Design, Templates, Other]
Data Structures [Preliminary, Lists, Stacks, Queues, Binary Trees, Heaps, Sorting, Searching]

© 2000 ThinkQuest Team C005618