|
This project is mostly designed to help you learn about abstraction, and to give you some practice testing an abstract data type (ADT). Copies of all necessary files are in |
hw3.txt. Type your name
and the current date at the top of this file, and
number your answers to correspond with the problem numbers in the textbook.testlist.c with the following
specifications.
stdin until EOF or
the quit is encountered. Respond to each command by one line of output
(preferably exactly) as shown in this sample run from our
solution. Never terminate abnormally (i.e., don't crash under any circumstances).
'#' is
its first non-blank character. This feature will be used in part 3.
insert followed by one of {
first, last, before, after } followed by a third item
(the string to be inserted to the list);
delete followed by one of {
first, last, current };
show followed by one of {
first, last, current, all };
clear, advance,
reset and quit.
#include "basiclist.h" and use those functions to
execute the commands.
Makefile
to separately compile testlist.c and basiclist.c, and properly link them to produce an executable
file named testlist. Include comments (first character is '#')
at the top identifying you and the date (just like everything else you turn in).
testlist.dat
containing commands that completely test all of the ADT functions and the operation of your
testing program. Use comment lines and blank lines as necessary
to clearly communicate the logic of your testing plan.
testlist < testlist-incomplete.datEOF.
turnin hw3@cs12 hw3.txt testlist.c Makefile testlist.dat