摘要: #include <stdio.h> #include "shou_note.h" struct student *create() /*这个括号是什么意思?*/ { //创建 头指针 尾指针 新指针 struct student *phead=NULL; struct student *pend 阅读全文
posted @ 2016-04-12 20:20 、Absorption 阅读(421) 评论(0) 推荐(0)
摘要: void quiksort(int a[],int low,int high){ int i = low; int j = high; int temp = a[i]; if( low < high) { while(i < j) { while((a[j] >= temp) && (i < j)) 阅读全文
posted @ 2016-04-12 19:14 、Absorption 阅读(463) 评论(0) 推荐(0)
摘要: 一、预备知识―程序的内存分配 一个由c/C++编译的程序占用的内存分为以下几个部分 1、栈区(stack)― 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。 2、堆区(heap) ― 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回收 。注意它与数据结构中的堆是两回事,分配方式倒是类似于链表,呵呵。 3、全局区(静态区)(stati... 阅读全文
posted @ 2016-04-12 19:13 、Absorption 阅读(193) 评论(0) 推荐(0)