Tasks studies - laboratory
Create a data structure support for the “stack”.
a. Error and message handling.
b. Stack handling (Stack initialization, stack release, adding a new element, fetching the first element, finding the given element, saving all stack elements to disk in a binary file, reading from disk). At the same time, stack handling should not depend on the type of data placed in the stack. Use the void pointer for this *. Combining elements into a stack should be done through pointers (Do not use a stack created based on an array!).
c. Interface. Each stack handling procedure should be called from the appropriate
interface function. In addition, the interface should output stack elements and menus to the monitor.
d. Data. They should be presented in the form of a structure and contain handling functions (saving/reading a single object to/from disk, outputting to the monitor, initializing the object and releasing memory, comparing functions according to the given criterion when searching, etc.).