If vc6 is used, replace _ I. rdbuf ()-> snextc () in the string file with the following code:
_ I. rdbuf ()-> sbumpc (); set the/GX option.
Symptom: The standard library template function of C ++ Getline reads additional characters after reading the qualifier... solution: else
If (_ TR: eq (_ e) _ c, _ d) {_ chg = true; // _ I. rdbuf ()-> snextc ();/* Comment out this line and add the next line. */_ I. rdbuf ()-> sbumpc (); break;} Be careful when modifying system header files... status quo: Microsoft has confirmed this is a 'bug 'in their products. This bug is already found in Microsoft
Visual c ++. Net was corrected. Case: As above... the general path of this file: C: \ ProgramFiles \ Microsoft
Visual Studio \ vc98 \ include \ string. Note that it is a string file, not a string. h file. Solve the problem after modification.
How do I set the/GX option?
Project-> Settings-> C/C ++-> projectoptions
In
Add/GX to the end of the edit box and save it as/GZ/GX/C. After running, the problem is solved, but the following error occurs: Waring: Ignoring g GG; you only need to delete/GX, because it has been reset.