_ Asserte ((unsigned) (c + 1) & lt; = 256);
when using VS2010 to write a program, it is a very simple program, but when inputting Chinese characters, the following error prompt appears.
at the beginning, I was obsessed with the “cannot find or open the pdb file” of the error prompt, but later found that it was not the problem there. I started to notice the following problems.
click Retry, and a breakpoint message will appear.
next, click interrupt, and the breakpoint information will appear.
it can be seen from the figure that this is one of the problems in isctype. C file.
the solution is to right-click on the project – properties – configuration properties – C/C + + – command line
and then enter “/ J”
in the input box on the lower right side to re-enter Chinese characters. It is found that the error has been solved.
reference: msdn.microsoft.com
note: for other editors, such as VS2005, 2008 and 2012, you can choose from the top of the above website. As shown in the figure below
Read More:
- Expected primary expression before ‘unsigned’ solution
- C language string processing error warning, c4996, sprintf, predicted, c4996, strcpy, c4996, strcat
- Error c2137 of C language: empty character constant (Fixed)
- Error C2664 in C + + compilation: cannot convert parameter 2 from “const char [5]” to “lpctstr” solution.
- Solution to the problem of no C / C + + option in the new project of eclipse
- ninja Compiling the C compiler identification source file CMakeCCompilerId.c failed
- Differences between length() size() and C strlen() of C + + string member functions
- To solve the running error of eclipse for C / C + +: launch failed binary not found
- Solution to the flash of running result of dev C / C + +
- C++:error C2228: left of ‘.str’ must have class/struct/union
- [Solved] Dev-C++ [Error] ‘for‘ loop initial declarations are only allowed in C99 or C11 mode
- Fatal error C1853 error occurs when there are mixed .c files in the VS project
- error C2057: expected constant expression (Can the size of an array in C language be defined when the program is running?)
- Debugging failed under vscode Ubuntu, unable to open libc-start. C raise. C, etc
- Chinese garbled code when vscode calls CMD to run C / C + +
- Solve the problem of error: cannot pass objects of non trivially copyable type ‘STD:: String’ in C / C + +
- Error c2065: ‘new’: undeclared identifier, mainly because it is a. C file
- Error: unrecognized command line option “-std=c++11”, to solve the problem that ubuntu does not support c++11
- MPI cannot be found in C / C + +
- Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“