- 博客(8)
- 收藏
- 关注
原创 C语言函数指针小结
C语言(谭浩强第五版)函数指针复习怎样定义一个函数指针:指针类型名 (*指针变量名)(函数参数表列)//参数表列中只需给出参数类型即可/* 8.5.3 (8.22)*/#include "stdio.h"void main(){ int max(int x,int y);//函数申明 int a,b,c; int (*p)(int,int);/*第一个int表示函数值类
2012-11-18 20:31:07 765
原创 数据结构二叉树的建立以及递归遍历
/* Note:Your choice is C IDE */#include "stdio.h"#include "stdlib.h"#define OK 1#define ERROR 0#define OVERFLOW -1typedef char TElemType;typedef int Status;/*************struct***************/
2012-11-18 15:14:13 962 4
原创 数据结构循环队列以及打印杨辉三角
#include "stdio.h"#include"malloc.h"#include"stdlib.h"#define OK 1#define ERROR 0#define OVERFLOW -1#define maxsize 100typedef int QElemType;typedef int Status;/******************struct******
2012-11-18 15:08:18 1317 1
原创 数据结构(C语言版)链队列的基本操作
#include"stdio.h"#include"malloc.h"#include"stdlib.h"#define OK 1#define ERROR 0#define OVERFLOW -1typedef int QElemType;typedef int Status;/***************存储结构**************/type
2012-11-18 15:03:37 1096
原创 数据结构栈应用括号匹配
#include#include#include"stdlib.h"#define stack_init_size 100#define stackincrement 10#define ok 1#define error 0#define overflow -1typedef int s
2012-11-18 14:57:33 607
原创 数据结构(C语言版)栈的实现进制的转换
/* Note:Your choice is C IDE */#include "stdio.h"#include#define ok 1#define error 0#define overflow#define stack_init_size 50#define stackincrement 5typedef int status;typedef int selemtype;
2012-11-18 14:55:18 1204 2
原创 数据结构(c语言版)链表的实现以及合并
/* Note:Your choice is C IDE */#include "stdio.h"#include"malloc.h"#include"stdlib.h"//包含exit()函数的头文件,以及system("pause")#define OK 1#define error 0#define OVERFLOW -1typedef int Status;typedef
2012-11-18 14:50:30 1237
原创 c语言实现数据结构顺序表源代码
#include#include#include"stdlib.h"#define list_init_size 100#define listincrement 10#define ok 1#define error 0#define overflow -1typedef int elemtype;typedef
2012-11-18 14:39:53 1365
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人