Not stuck and no real question, which is unusual for me. Just a comment. The 2nd term in a for loop establishes the condition under which the loop terminates. For example, this loop terminates when i increments to 5...
for(i=0; i<=5; i++)
{
...
...
}
It'll execute its contents 6 times.
The terminating condition, i.e., i=5, seems to be determined one time. However, if a function call is placed in the terminating condition, such as...
for(i=0; i<=this->LenStr(); i++)
{
...
...
}
...then that function call (a class member function, in the above case), is evaluated every iteration of the loop! I simply didn't know that and it amazed me. Any comments???