[Code] Runtime Error(ACCESS_VIOLATION) solution

In the process of doing the question, occasionally encounter the error prompt of Runtime Error (ACCESS_VIOLATION).
Insert picture description here
When encountering this kind of operating error, it is usually caused by the array subscript out of bounds . Just check whether the array is large enough and increase the range of the array appropriately .

Guess you like

Origin blog.csdn.net/Ljnoit/article/details/113844743