Hai
int count=10;
CvPoint *point //动态数组必须以指针的形式定义
point=new Cvpoint[count]();//创建了长度为count的动态数组
...
delete[] point;//动态数组使用完成后一定要释放储存空间
Hai
int count=10;
CvPoint *point //动态数组必须以指针的形式定义
point=new Cvpoint[count]();//创建了长度为count的动态数组
...
delete[] point;//动态数组使用完成后一定要释放储存空间
转载于:https://www.cnblogs.com/gaohai/p/5842392.html