It is recommended that the questioner directly post the complete source code to facilitate the answerer to run and check the error. No one cares about screenshots, after all, it is difficult to use the human brain to compile them.
I don’t know if there are too many things included here, causing some things to conflict. Let’s look at the compilation errors. Look at the program map, it can only be here
Maybe the compiler considers this private xxx to be a member variable, so there should be a } in front of it to end the function.
Check carefully whether the brackets and semicolons in the code are half-width
The variables below public are private, which may cause problems.
It is recommended that the questioner directly post the complete source code to facilitate the answerer to run and check the error.
No one cares about screenshots, after all, it is difficult to use the human brain to compile them.
Curious code, and how lazy you must be
I don’t know if there are too many things included here, causing some things to conflict.
Let’s look at the compilation errors.
Look at the program map, it can only be here
Maybe the compiler considers this private xxx to be a member variable, so there should be a } in front of it to end the function.