typedef struct innode
{
char letter;
struct innode* next;
} InnerNode;
typedef struct node
{
InnerNode* word;
Type: Posts; User: awox
typedef struct innode
{
char letter;
struct innode* next;
} InnerNode;
typedef struct node
{
InnerNode* word;
I have been give this code and i should create a calculator with linked lists.
The input always alternates between integer numbers and operators ('+', '-', '*', '/'), starting with a number. This is...
in this priorityqueuedemo.c "entry" is my "data"?
It do be like that for us: We learn Structs, Enums, Pointers, whatsoever. and then we get a massive homework where everything is mixed up crazy, then you lose overview for everything. Thats where I...
already did i dont know how to make enqueue an entry for the priorityqueue
i have problems with understand these things. yes my struct entry does have a member called priority. and no i dont know how to do that.
probably something like =
struct entry getNewEntry(){...
Choose action: print queue (p), enqueue entry (e), dequeue entry (d) or exit (x): e
Choose priority: lowest (L), low (l), normal (n), high (h), highest (H): a
Input invalid! Try again: L
...
What do you exactly mean by that? I tryna make a enqueue, a dequeue, print queue and exit. and output should look something like that
Choose action: print queue (p), enqueue entry (e), dequeue...
struct pqueue
{
int numEntries;
struct entry entries[10];
}
pqueue;
case 'e':
void enqueue(struct pqueue*pqueue, struct entry entry)
{
thank you!
struct pqueue {
struct entry entries[10];
}pqueue;
How can i check if the entry array "entries" is empty?
int isEmpty(struct pqueue* pqueue) (<- i have to use this...