- 博客(3)
- 收藏
- 关注
原创 使用opencv保存多张图片
#include <iostream> #include <opencv2/opencv.hpp> #include <Kinect.h> using namespace std; using namespace cv;void main() { Mat M = imread("1.jpg",0); char file_img[100]; int i = 0; for
2017-09-17 11:38:11 1130
原创 i++和++i
在赋值运算中有区别,单独使用没有区别例子1:赋值运算 (实际上是两条语句) a=i++; (相当于:a=i; i=i+1;) a=++i; (相当于:i=i+1;a=i;) 这样使用a的值是不一样的例子2:单独使用 i++; // i=i+1 ++i; // i=i+1 这样使用没有区别
2017-08-23 12:22:43 274
原创 C++ 文件操作
一:三个头文件 ( i:输入 o:输出 str:字符串 )** 1、标准IO:iostream.h 2、文件IO:fstream.h 3、字符串IO:strstream.h 头文件中定义了操作相关的类(如图) #include "stdafx.h" #include <iostream> #include <strstream> using namespace std; i
2017-08-21 14:13:06 214
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人