- 博客(4)
- 资源 (3)
- 收藏
- 关注
原创 求二叉树叶子节点数目的中序遍历递归算法(已经在visual c++ 6.0中调试通过)
#include "stdio.h"typedef struct _tree_test{ int data; struct _tree_test *lchild; struct _tree_test *rchild;}tree_test;tree_test *root;int sum = 0;int m = sizeof(tree_test);void insert_data(in
2009-12-01 23:43:00 987
原创 快速排序
今天面试时机试,15分钟,当场没写玩,以前总觉得自我感觉良好,可程序中不允许有逻辑盲区。灰溜溜跑了。是我心仪已久的公司,现在很悔恨,完整代码如下,以后参考:#define MAX_NUM 8int pivot_loc;int Partition(int *array,int low,int high){ int pivot_key = array[low]; int tmp;
2009-02-05 17:45:00 307
原创 c语言双向链表举例
#include #include /*#include */typedef struct stuscorestruct{ char stuname[20]; int score; struct stuscorestruct *prev; struct stuscorestruct *next;}STUSCORESTRUCT;ty
2008-03-12 16:11:00 1077 1
原创 atoi函数实现
#include #include int myatoi(char *str){ int ret = 0; int sign = 1; if(*str == -) sign = -1; else ret = ret *10 + (*str - 0); str++;
2008-03-06 16:12:00 3804 3
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人