#include “string.h”
#include “stdio.h”
#*include “stdlib.h”*
*#include “math.h”
#include “time.h”
#define OK 1
#define ERROR 0
#define TRUE 1
#define FALSE 0
#define MAXSIZE 100 / 存储空间初始分配量 /*
typedef int ZB; /* Status是函数的类型,其值是函数结果状态代码,如OK等 */
/* 用于构造二叉树************************ */
int zb=1;
typedef char String[24]; /* 0号单元存放串的长度 */
String str;
ZB StrAssign(String T,char *chars)
{
int i;
if(strlen(chars)>MAXSIZE)
return ERROR;
else
{
T[0]=strlen(chars);
for(i=1;i<=T[0];i++)
T[i]=*(chars+i-1);
return OK;
}
}
/* ************************************** */
typedef cha