- 博客(5)
- 收藏
- 关注
转载 表达式计算(栈)
题描述 输入一个只包含加减乖除和括号的合法表达式,求表达式的值。其中除表示整除。 输入格式 输入一行,包含一个表达式。 输出格式 输出这个表达式的值。 样例输入 1-2+3*(4-5) 样例输出 -4 数据规模和约定 表达式长度不超过100,表达式运算合法且运算过程都在int内进行。这个题的思路就是先把中缀表达式转化为后缀表达式,然后用后缀表达式计算出式子的值1
2017-11-28 21:15:07 870
转载 python3写excel
说明2007版以前的Excel(xls结尾的),需要使用xlrd读,xlwt写。 2007版以后的Excel(xlsx结尾的),需要使用openpyxl来读写。 pypi的地址:https://pypi.python.org/pypi/xlwt https://pypi.python.org/pypi/xlrd https://pypi.python.org/pypi/openpyxl o
2017-11-06 23:23:54 719
原创 根据后序和中序建立二叉树
#include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct node* tree_pointer; typedef struct node{ tree_pointer left_child; tree_pointer right_child; char data; }tree; int find
2017-11-04 21:15:30 1071
原创 根据前序和中序创建二叉树
#include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct node* tree_pointer; typedef struct node{ tree_pointer left_child; tree_pointer right_child; char data; }tree; int find
2017-11-04 20:42:12 2263
原创 求二叉树的前中后序递归、迭代,树的叶子节点,高度(c语言)
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<assert.h> #define MAX 100 typedef struct node* tree_pointer; typedef struct node{ char data; tree_pointer left_child,right_child
2017-11-02 21:57:02 748
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人