📜  将较小的数组复制到数组 cpp - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.097000             🧑  作者: Mango

代码示例1
unsigned char *a1 = arr1;
unsigned char *a2 = arr2;
for (int x = 0; x < 768; x++) //copy each row
{
    memcpy(a1, a2, nc);
    a1 += 1024;
    a2 += 768;
}