これは、atoi () メソッドの連続体、char * cout です。
The last question I don't understand is:
After line 5,
while ( pCur >= pStr && *pCur <= '9' && *pCur >= '0' ) {
Now pCur = 2 and pStr = 242, why the condition is evaluated to be true?
I actually wrote the cout test:
cout << "pCur: " << pCur << endl; //line 5
cout << "pStr: " << pStr << endl;
bool b = (pCur >= pStr);
cout << "pCur >= pStr: " << b << endl;
Output:
pCur: 2
pStr: 242
pCur >= pStr: 1
This doesn't make any sense to me.