#include <stdlib.h>
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <conio.h>
#define stack_init_size 100 /* variables in the save storage space */
#define stackincrement 10 /*increment of distribution in the save storage space */
typedef struct
{char *base; /*before and after the creating of the shed ,base is null */
char *top; /*shed pointer */
int stacksize; /*the save storage space distributive by the element */
}sqstack;
sqstack s,q;
/* construct a structuer array */
typedef struct {
char cc[9999];
int no;}array;
/* define the whole bureau varible*/
array a[10000];
int m,n,i,j;
char name[40];
char t='\n';
file *fp;
/* construct an emputy shed*/
void initstack()
{ s.base=(char *)malloc(stack_init_size*sizeof(char));
if(s.base==null)
exit(1);
s.top=s.base;
s.stacksize=stack_init_size;}
/* using character shed ,accept the data from the termina
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页