This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
struct queue_node | |
{ | |
char x; | |
struct queue_node *next; | |
}; | |
struct queue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <string.h> | |
#include "stack.h" | |
typedef struct StackNode { | |
StackItem item; /** The data of this node. **/ | |
struct StackNode *next; /** The next node (the one below the top). **/ | |
} StackNode; | |
struct Stack { |