摘要:这一节从后往前写。____stack and heap___stack由 汇编语言操控管理,数据先入后出。栈是存放局部变量,函数调用子函数时,该函数在栈中占用的空间会增大,用于存放子函数的局部变量。很明显的逻辑,必须被调用的子函数的局部变量被释放以后才能存取调用函数的局部变量,先入后出就是这么理所当...
阅读全文
摘要://既然在这里开始,那就在这里结束。实现stack 功能____coding_using subfunction to focus on the main aim of current function_void* is not allowed to do arithmetic operation_...
阅读全文
摘要:episode 3--storage structure. ampersand operate with asterisk--library functionepisode 4--generic function 泛型函数swap(void* pa,void*pb,int size);-----am...
阅读全文
摘要:episode2//it is very interesting,an excellect teacher, I love it1,why negative is indicated the way it is indicated2,how float is indicated3,type conv...
阅读全文
摘要:_____谈谈排序算法交换排序——>冒泡排序-->快速排序选择排序——>简单选择排序——>堆排序插入排序——>直接插入排序——>希尔排序_____排序算法对比名称稳定性时间复杂度空间复杂度描述数据对象为链表平均最坏冒泡排序YO(n^2)O(1)无序区,有序区。 选择排序 O(n^2)O(1)有序区,...
阅读全文