Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need some help with a C problem. Thanks 1. Solve/ fill in dll header through insertBefore. 2. Call insertBefore & insertAfter in main function #include

Need some help with a C problem. Thanks

1. Solve/ fill in dll header through insertBefore.

image text in transcribed

2. Call insertBefore & insertAfter in main function

image text in transcribed

image text in transcribed

#include "dll.nl struct dllheader makelist struct lnode *makenode ( int val ) void insertFront struct dllheader *L, int val void insertBack struct dllheader *L, int val) int isInList( struct dllheader *L, int val) struct lnode findNode ( struct dllheader L, int val) void insertAfter( struct dllheader *L, int val, struct lnode p) void insertBefore( struct dllheader L, int val, struct lnode p void printerF struct dllheader alist) printf (" In") void printerR( struct dllheader alist ) printf("- Reverse printf ('" In") #include "dll.h" int main ) struct dllheader L; struct lnode *tmp; int i, x; L-makelist); - makelist insertBack( L, 789 printerFL for (i 0; i >>>alue to search: " scanf ("%d", &x); i= isinlist (L, x) ; printf ("I is %d ", i); tmpfindNode (L, x) if (tmp-NULL) printf ("NOPE ") else printf("Found node %d ", tmp->data); /fiqure out insertBefore and insertAfter return 0 #include #include struct lnode int data; struct lnode *prev: struct lnode *next; struct dllheader struct lnode *first; struct lnode last; int len; struct dllheader *makelist( struct Inode makenode ( int val ; void insertFront( struct dllheader L, int val void insertBack struct dllheader *L, int val): int isInList ( struct dllheader *L, int val struct lnode *findNode struct dl void insertAfter struct dllheader L, int val, struct lnode *p void insertBefore ( struct dllheader *L, int val, struct lnode *p void printerF struct dllheader alist void printerR struct dilheader *alist lheader *L, int val )

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

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

Enhance the basic quality of your voice.

Answered: 1 week ago

Question

Describe the features of and process used by a writing team.

Answered: 1 week ago