摘要: 1 #include<iostream> 2 using namespace std; 3 4 int arrayInit(int size, int **outbuf) //一维数组的初始化 5 { 6 int *a = NULL; 7 a=(int*)malloc(sizeof(int)*(si 阅读全文
posted @ 2020-06-30 23:22 Kalzzz 阅读(281) 评论(0) 推荐(0)
摘要: 1 template <typename Type> //关键字class 与typename的区别,,前者可能是类,后者是一个类型 2 Type min(Type a, Type b) 3 { 4 return a < b ? a : b; 5 } 6 7 template <class Type 阅读全文
posted @ 2020-06-30 21:24 Kalzzz 阅读(146) 评论(0) 推荐(0)