C++ common problems & solutions

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:

  1. An undeclared variable is used.
  2. Because the encoding format is different, there are unrecognizable characters in the code.

Solution:

  1. Use it after declaring the variable.
  2. Delete the blank characters with red wavy lines, as shown below:
    Insert picture description here

2. 0xC00000FD: Stack overflow (stack overflow) problem

problem analysis:

  • The data length exceeds the allocated stack length, so it causes a stack overflow

Solution:

  1. 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
    Insert picture description here
  2. Use new and delete to maintain space, so that it will not be limited by the size of the stack.

reference:

  1. https://www.cnblogs.com/joorey/p/11769426.html

Guess you like

Origin blog.csdn.net/another_wood/article/details/113094315