current position:Home>When two string attributes are defined in the class, an error is reported: 0xc005: an access conflict occurs when writing to the location 0xCC.

When two string attributes are defined in the class, an error is reported: 0xc005: an access conflict occurs when writing to the location 0xCC.

2022-02-02 19:47:10 CSDN Q & A

Operation results and error reporting contents

img

But put number Change the type to int It can run normally :

img


solve




Refer to the answer 1:

I tested it and there was no problem , Strange phenomenon




Refer to the answer 2:



Refer to the answer 3:

There's nothing wrong with my test , You try again

img




Refer to the answer 4:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202021947087895.html

Random recommended