随笔分类 -  C

C的基础
摘要:中缀: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还有你 阅读(396) 评论(0) 推荐(0)
摘要:main.c 文件#include #include "stack.h"int main(void){ char *str = "abcdefghijklmn"; init_stack(3); //创建动态栈 while (*str != '\0') { ... 阅读全文
posted @ 2015-09-25 21:07 微博和csdn还有你 阅读(342) 评论(0) 推荐(0)
摘要:#include struct STU { int id; char name[20]; char sex;};int main(void){ struct STU b = {10, "xwp", 'm'}; struct STU a; a = b; pri... 阅读全文
posted @ 2015-09-23 10:26 微博和csdn还有你 阅读(227) 评论(0) 推荐(0)