Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

image text in transcribed

this is the mothd behavoir and assertions for the following fucntion

image text in transcribed

#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions