
-----------------------------------
Shiro786
Sat Oct 15, 2011 3:47 pm

Re: Print Method for Queue List
-----------------------------------
**EDIT**: I figured it out, you can delete this post. I'm leaving it just in case someone else needs help.


I'm trying to figure out how to print a list of Queues. For some reason whenever I try using ' -> ' it says that I'm using an invalid argument. The code is a bit weird; you have to compile an executable before you can run the program itself. My code is at the bottom.

QueueImplementation.c :

My Code:

QueueInterface.h :

QueueTypes.c : 

QueueDriver.c : 

[code]
#include 
#include 
#include "QueueInterface.h"
          
int main(void)
    {        
          Queue Q;
	  InitializeQueue(&Q);
          
          if (Empty(&Q) == 1)
        {
          printf("Queue is empty\n");
        }
         int number = 1;
         while (number 