Requesth Ifndef Requesth Define Requesth Define Namelen 30 Struct Request Int Roomnumber C Q37171039

Project 10, Program Design (70 points) Modify project 9 by adding and modifying the following functions: 1. 1) Add a delete f

request.h

#ifndef REQUEST_H
#define REQUEST_H
#define NAME_LEN 30
struct request{
int room_number;
char first[NAME_LEN+1];
char last[NAME_LEN+1];
int num_items;
struct request *next;
};

//the function records client’s information: room number, name,number of items, checks whether a request existed with theroom
//number, and if not, allocates memory for the info and links it tothe end of the linked list. Returns pointer to the new linkedlist
struct request *append_to_list(struct request *list);

//the function updates the number of items requested by the clientby finding the matching room number and asking how many itemsshould

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.