You are on page 1of 2

#include <stdio.

h>

#include <stdlib.h>

#include <string.h>

typedef struct node{

char id[10];

char destino[10];

char emp[10];

char modelo[10];

int qtd;

struct node*next;

}Node;

typedef struct queue{

Node*front;

Node*rear;

}Queue;

Queue* inicia(Queue *q){

q->front=NULL;

q->rear=NULL;

return q;

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

typedef struct node{

char id[10];

char destino[10];
char emp[10];

char modelo[10];

int qtd;

struct node*next;

}Node;

typedef struct queue{

Node*front;

Node*rear;

}Queue;

Queue* inicia(Queue *q){

q->front=NULL;

q->rear=NULL;

return q;

You might also like