Error: the solution of “241” and “343” in program

When encountering the error: strain ‘,’241’,’343 ‘in program

An error is a compilation error in C/C + +.

The error refers to the source program has illegal characters, illegal characters need to be removed. Generally, the coder uses Chinese input method or directly copies and pastes the code from other places. Chinese space, Chinese quotation marks and various Chinese punctuation marks appear in the code.

Solution:
open the error file in Notepad and save it in ANSI format. You can see that some unrecognized characters become garbled.

1. Delete the space in the wrong line and the space before and after it, and try again
2. Change the color that is obviously different from other punctuation marks( Most compilers have color recognition)
3. If the code is relatively short, it is recommended to re type it all


Read More: