Summary:
C++ is a broad language. In the process of learning, I found that it is easy to encounter many problems that are not written in the document. Therefore, this article wants to continue to summarize the common problems in the use of C++, so as to save everyone from solving problems. time.
List of Questions:
1. E0007: Unrecognized mark
There are two possible reasons:
- An undeclared variable is used.
- Because the encoding format is different, there are unrecognizable characters in the code.
Solution:
- Use it after declaring the variable.
- Delete the blank characters with red wavy lines, as shown below:
2. 0xC00000FD: Stack overflow (stack overflow) problem
problem analysis:
- The data length exceeds the allocated stack length, so it causes a stack overflow
Solution:
- Increase the size of the stack. Right-click the properties of the project-"Linker-"System -" Stack reserved size and stack submission size, here write a larger number, for example, write 100000000
- Use new and delete to maintain space, so that it will not be limited by the size of the stack.
reference:
- https://www.cnblogs.com/joorey/p/11769426.html