This file contains hidden or 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 <string.h> | |
| #include <stdlib.h> | |
| // Please attension big-small letter. It works with ascii value. | |
| void push(char element); | |
| char pop(); | |
| char stack[30],ele; | |
| int top = - 1; |
This file contains hidden or 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> | |
| #include <string.h> | |
| #include <ctype.h> | |
| #define SIZE 30 | |
| char stack[SIZE]; | |
| int top = -1; | |
| void push(char x){ |
This file contains hidden or 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> | |
| #define SIZE 30 | |
| int top = - 1,stack[SIZE]; | |
| void push(int m){ | |
| top++; | |
| stack[top] = m; | |
| } |
This file contains hidden or 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> | |
| #define SIZE 30 | |
| #include <string.h> | |
| #include <ctype.h> | |
| int stack[SIZE],top = -1; | |
| void push(int x){ | |
| top++; |