

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Professor: Budd; Class: DATA STRUCTURES; Subject: Computer Science; University: Oregon State University; Term: Winter 2009;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


struct link { EleType value; struct link * next; };
An Active Learning Approach to Data Structures using C 2
struct link { EleType value; struct link * next; }; struct linkedListStack { struct link *firstLink; } void linkedListStackInit (struct linkedListStack * s) { s->firstLink = 0; } void linkedListStackFree (struct linkedListStack *s) { while (! linkedListStackIsEmpty(s)) linkedListStackPop(s); } void linkedListStackPush (struct linkedListStack *s, double d) { struct link * newLink = (struct link *) malloc(sizeof(struct link)); assert (newLink != 0); } double linkedListStackTop (struct linkedListStack *s) { } void linkedListStackPop (struct linkedListStack *s) { } int linkedListStackIsEmpty (struct linkedListStack *s) { }