- 博客(12)
- 收藏
- 关注
原创 tree.c
/*二叉树实现*/ #include"tree.h" #include<stdlib.h> #include<stdio.h> #include<string.h>static SeekItem( const Item * pi, Tree * ptree); static Node * MakeNode(const Item * pi); static bool ToLeft(const I
2016-09-30 22:51:20
638
原创 tree.h
/*二叉搜索树*/ /* 操作: */ /* 操作前: */ /* 操作后: */ #ifndef _TREE_H #define _TREE_H #include<stdbool.h>typedef struct item { char petname[20];/* 宠物名字*/ char petkind[20];/* 宠物种类*/ }Item;#define MAXITEMS 1
2016-09-30 22:49:59
969
原创 2016.09.29 mall.c
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<time.h> #include"queue.h" #define MIN_PRE_HR 60.0/*有新顾客到来吗?*/ bool newcustomer(double x); /*设置顾客参量*/ Item customertime(lon
2016-09-29 20:25:34
228
原创 2016.09.29 queue.h
#ifndef _QUEUE_H #define _QUEUE_H #include<stdbool.h> /*在此处插入Item的类型定义*/ /*例如:*/ typedef int Item; /*或:typedef struct item{...} Item*/#define MAXQUEUE 10typedef struct node { Item item; struct
2016-09-29 17:28:39
221
原创 2016.09.29 use_q.c
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string.h> #include"queue.h"int main() { Queue line; Item temp; char ch; InitializeQueue(&line); puts("Te
2016-09-29 17:26:51
317
原创 2016.09.29 queue.c
#include<stdio.h> #include<stdlib.h> #include"queue.h"/*局部函数*/ static void CopyToNode(Item item, Node *pn); static void CopyToItem(Node * pn, Item *pi); void InitializeQueue(Queue * pq) { pq->front
2016-09-29 17:25:27
214
原创 2016.9.28
2016.9.28主要知识点目录 1.条件编译——#ifdef #ifndef #if #endif 2.预定义宏和#line #error #pragma 3.内联函数inline 4.库——atexit() qsort() memcpy() memmojve() 5.可变参数stdarg.h(int ,…)——va_list,va_start, va_arg
2016-09-28 21:08:21
176
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人