- 博客(4)
- 收藏
- 关注
原创 【Linux】-h 和查找最大文件
ll列出文件夹中的文件,-h参数可以以人性化的方式显示出大小,GB,MB等做单位 列出某文件夹中大于3G的文件,方法如下 df列出磁盘大小
2014-12-10 15:32:18 725
原创 【opencv】Mat 数据操作
t = (double)getTickCount(); Mat img1(1000, 1000, CV_32F); for (int i=0; i<1000; i++) { for (int j=0; j<1000; j++) { img1.at(i,j) = 3.2f; } } t = (double)getTickCount() - t; printf("in
2014-12-10 15:26:17 516
原创 malloc和realloc
#include "stdio.h" #include "stdlib.h" int main() { int a[4] = {1,2,3,4}; int *p = (int *)malloc(3*sizeof(int)); p[0] = 0; p[1] = 1; p[2] = 2; for (int i = 0;i<3 ;i++) { printf("%d ",p[i]
2014-12-10 15:22:20 485
原创 【C++Primer】(一)
1.标准输入输出: #include using namespace std; int main() { cout<<"Input Two Numbers:\n"<<endl; int v1,v2; cin>>v1>>v2; cout<<"v1+v2 = "<<v1+v2<<endl; return 0; } 2.读入未知数目的输入: #include int main()
2014-12-10 15:16:43 323
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人