M.BM has number of items in inventory, and Q.front->BM has number of items user wants. After run this function M.BM should subtract number of items that user wants.
but, after run this function my inventory stays same.
also, when I enqueue ABC and 2, the function nextline() prints ? -8989283
i = dequeuedata();
printf("%c %i" , name, i);
struct customer * tempPtr;
printf("No More Orders\n");
/* name is a global variable declared as char name */
switch(ch) /* ch is a global variable */
M.BM -= Q.front->BM;
tempPtr = Q.front;
Q.front = Q.front->next;
if (Q.front == NULL)
Q.rear = NULL;