摘要: #include #include "link.h"void print_item(link p){ printf("%d\n", p->item);}int main(void){ link head, tail, p; //struct node *head; l... 阅读全文
posted @ 2015-09-26 16:58 微博和csdn还有你 阅读(234) 评论(0) 推荐(0) 编辑
摘要: #include #include "link.h"void print_item(link p){ printf("%d\n", p->item);}int main(void){ link head, p; //struct node *head; link_in... 阅读全文
posted @ 2015-09-26 16:43 微博和csdn还有你 阅读(304) 评论(0) 推荐(0) 编辑
摘要: #include #include "queue.h"int main(void){ char *s = "abcd"; while (*s != '\0') enqueue(*s++); while (!is_empty()) putchar(dequ... 阅读全文
posted @ 2015-09-26 15:45 微博和csdn还有你 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 中缀:3+5后缀:3 5 +3+4*2-1 转后缀为 4 2 * 3 + 1 -#include #include #include #include "stack.h"int reversed_cal(char *s){ int res = 0, a, b; char *p = s; ... 阅读全文
posted @ 2015-09-26 14:52 微博和csdn还有你 阅读(391) 评论(0) 推荐(0) 编辑