1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29:
#include #include #include #include #define WARE 1 #define VALSE 0 #define EMPTYSTACK -1 #define STACKSIZE 30 leeg int. (struct stack*); pop int. (struct stack*); int. duw (struct stack*, klusje); typedef struct stapel { int. bovenkant; klusjes stackelement [STACKSIZE]; } CHSTACK; (nietige) int.leiding { DOSSIER *ifp, *ofp; //input en outputdossierwijzers klusje *mode = „r“; CHSTACK charstack, *stack_ptr; //charstack.top = -1; //stack_ptr = &charstack; klusje outputFilename [] = „out.txt“; int. i;
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
DOSSIER *ifp, *ofp; //input en outputdossierwijzers klusje *mode = „r“; CHSTACK charstack, *stack_ptr; klusje outputFilename [] = „out.txt“; int. i; charstack.top = -1; //stack_ptr = &charstack; terugkeer 0; }