09 2017 档案
摘要:内联函数: 以下情况不宜使用内联:(1)如果函数体内的代码比较长,使用内联将导致内存消耗代价较高。(2)如果函数体内出现循环,那么执行函数体内代码的时间要比函数调用的开销大。
阅读全文
摘要:1.栈 1 #include <cstdio> 2 #include <iostream> 3 using namespace std; 4 const int stack_size = 10; 5 const int ex_size = 1; 6 typedef struct{ 7 int *ba
阅读全文
摘要:1.线性表的顺序表示 1 //线性表的顺序表示(c++) 2 #include <iostream> 3 using namespace std; 4 const int list_size = 100; 5 const int ex_size = 10; 6 typedef struct{ 7 i
阅读全文