Question: In C#, I need to write a data structure for a circular dynamic array class. This CDA.C class must be created to work with the

In C#, I need to write a data structure for a circular dynamic array class.

This CDA.C class must be created to work with the following header file cda.h

In C#, I need to write a data structure for a circular

I just need help with the first three defined lines. I believe I have the *newCDA created and this is it below, I need help creating setCDAdisplay and setCDAfree

dynamic array class. This CDA.C class must be created to work with

this is the mothd behavoir and assertions for the following fucntion

the following header file cda.h I just need help with the first

#ifndef-CDA-INCLUDED- #define-CDA-INCLUDED- #include typedef struct cda CDA; extern CDA *newCDA (void); extern void setCDAdisplay(CDA *items, void (*display) (void *,FILE *)); extern void setCDAfree(CDA *items, void (*free) (void *)); extern void insertCDA (CDA *items,int index,void *value) extern void *removeCDA (CDA *items,int index); extern void unionCDA(CDA *recipient,CDA *donor); extern void *getCDA (CDA *items,int index); extern void *setCDA(CDA items,int index,void *value); extern int sizeCDA (CDA *items) extern void displayCDA (CDA *,FILE *); extern int debugCDA(CDA *,int level); extern void freeCDA (CDA *); #define #define #define #define insertCDAfront (items , value) insertCDAback(items,value) removeCDAfront(items) removeCDAback(items) insertCDA(items,0, value) insertCDA(1tems, sizeCDA(items),value, removeCDA(items,0) removeCDA( items, sizeCDA( Items )-1) #endif

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!