I found a bug today

xiaoxiao2021-03-06  101

Today, when I changed the old code, I found a bug that others used to commit. It is the two objects that cannot be copied with Memcpy, so be sure to assign the operator with the overload, so that it will affect the data in other objects. After working, I found this bug. It's really worthless: (. The following example is not available: COBJECT A; COBJECT B; Memcpy (& A, & B, SIZEOF (COBJECT)); this will be wrong.

转载请注明原文地址:https://www.9cbs.com/read-96255.html

New Post(0)