memcpy - how to copy float* to float* variable

 

how to copy float* to float*

float* seg_segmap = new float[OUTPUT_H * OUTPUT_W];
float* temp = new float[OUTPUT_H * OUTPUT_W];
//memcpy(temp, seg_segmap, sizeof(seg_segmap));//error
memcpy(temp, seg_segmap, OUTPUT_H * OUTPUT_W*sizeof(float));

 End

posted on 2018-05-22 14:57  鹅要长大  阅读(421)  评论(0编辑  收藏  举报

导航