User Tools

Site Tools


adt_example

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
adt_example [2014/11/12 10:49]
czerny created
adt_example [2014/11/12 11:01]
czerny
Line 1: Line 1:
-I want to give a simple example about +===== StringList ADT ===== 
 +I want to give a simple example about creating **a**bstract **d**ata **t**ypes in Pelles C. 
 + 
 +This example could be very much expanded. But I tried to leave it as simple as possible to show the principle case. 
 + 
 +The user should see the ADT as a black box. He has not to know anything about internal structures nor the implementation of the ADT. All he knows and should use is the name of the ADT and its exported functions. 
 + 
 +Therefore the implementor of an ADT writes an header file, the user may include. 
 + 
 +In this example we will build a string list. We declare the ADT type name as: 
adt_example.txt · Last modified: 2014/11/12 11:55 by czerny