编程风格探讨
for( c = 0; c < y_len; c++ )for( r = 0; r < x_len; r++ )
{
det_img[y2_start+c][x2_start+r] = src_img[y1_start+c][x1_start+r];
}
和
for( c = 0; c < y_len; c++ )
for( r = 0; r < x_len; r++ )
{
det_img[y2_start+c][x2_start+r] = src_img[y1_start+c][x1_start+r];
}
哪个比较好