Then did an experiment, found that as long as write the string, can't do the Next line, let alone to check the content of the string, I this is where the problem, solving the
CodePudding user response:
Not very know what you mean, I'm debugging here no problem, C - type and String can be seen
CodePudding user response:
I can't , add view STR results shown on the Debug STRSTR={
The static npos=& lt; Optimized out>
_M_dataplus={... }
_M_p=0 by 8 "error: always access the memory at address 0 by 8 & gt;
Just show the STR for these three lines, and the Next line, click no, if just write an a + b (int), everything is ok,,,
CodePudding user response:
GCC optimization options - o0 insteadCodePudding user response:
In addition, your purpose is to want to compare two strings, the string (8), string (888), instantiate the two objects, it is not necessary to have to write an arrayCodePudding user response: