Hello, everyone I want to use the two structures in compatibility, but I want to make the memory addresses of the variables of RECT and Rect the same.
Of course, the left top of REAC with d d can be replaced When I tried to write with Rect, t, r, b, the address was the same as the first RECT left Is there a way? I really want to make the right of RECT and r of Rect the same.
Please refer to the code below and the result.
It's a simple code, so you'll understand right away.
© 2022 pinfo. All rights reserved.