摘要:
#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... 阅读全文
摘要:
#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... 阅读全文
摘要:
#include #include "queue.h"int main(void){ char *s = "abcd"; while (*s != '\0') enqueue(*s++); while (!is_empty()) putchar(dequ... 阅读全文
摘要:
中缀: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; ... 阅读全文