摘要: #define maxsize 10 typedef struct{ elemtype data[maxsize]; int front,rear; //对头指针和队尾指针 }sqQueue; //初始化 void InitQueue(sqQueue &Q){ Q.rear=Q.front=0; } 阅读全文
posted @ 2020-05-01 22:33 iiiiiki 阅读(734) 评论(0) 推荐(0)
摘要: typedef struct Linknode{ elemtype data; struct Linknode *next; }Linknode,*LiStack; //栈类型定义 //初始化 void InitStack(LiStack &lis){ lst=(LiStack)malloc(siz 阅读全文
posted @ 2020-05-01 20:58 iiiiiki 阅读(178) 评论(0) 推荐(0)