[an error occurred while processing this directive]
.h
file so that it is shared
between the class and its clients.
In addition, you usually need a function that initializes the objects in
the class.
For the stack class, this function is called create().
The code in this class is not strict C code.
All functions that modify the stack have a reference parameter to reference
the stack.
Reference parameters are not supported in C, but they are supported in C++.
The examples will compile correctly and work correctly if compiled with a
C++ compiler or a combined C and C++ compiler such as g++
.
[an error occurred while processing this directive]