
C语言
hahaha_2017
这个作者很懒,什么都没留下…
展开
-
数组和单链表的排序
//数组的冒泡排序 void sortA2(int a[], int length){ int i, j, temp; for(i = 0; i < length-1; ++i){ for(j = 0; j < length - i - 1; j++){ if(a[j] > a[j - 1]){ ...原创 2018-08-18 11:18:24 · 588 阅读 · 0 评论 -
堆和栈的区别
参见https://www.cnblogs.com/yechanglv/p/6941993.html原创 2018-10-05 11:07:43 · 128 阅读 · 0 评论 -
C++中虚函数的作用
参考https://blog.youkuaiyun.com/jhz033/article/details/73527288原创 2018-10-07 20:20:54 · 232 阅读 · 0 评论 -
读取txt文件数据保存到vector,并转换为Mat
Mat Vec2Mat(vector<vector<float>> vec) //二维Vector转Mat { int row = vec.size(); int col = vec[0].size(); Mat img(row ,col, CV_32F); float *ptmp = NULL; for (int i = 0; i ...原创 2019-01-15 16:01:31 · 2236 阅读 · 1 评论