gpt4 book ai didi

C++ memcpy 读取内存

转载 作者:行者123 更新时间:2023-11-28 00:00:02 24 4
gpt4 key购买 nike

<分区>

我正在尝试使用 memcpy 来读取内存。

BYTE test[] = {0x01};
BYTE test2[] = {0x00};
memcpy (test, test2, sizeof(test));
if (test == test2){
MessageBox::Show("Same");
}else{
MessageBox::Show("Different");
}

为什么test和test2总是不一样?

感谢您的帮助。

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com