随笔分类 - 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; ...
阅读全文
摘要:main.c 文件#include #include "stack.h"int main(void){ char *str = "abcdefghijklmn"; init_stack(3); //创建动态栈 while (*str != '\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...
阅读全文

浙公网安备 33010602011771号