There is absolutely no reason that you can make that assumption. All that he's posted is representative of using char arrays. Especially considering the fact hat he was using getline.Originally posted by pianorain
If you check it out, you can see that he isn't using char arrays.
Though yes, he did have a logical error with the loop itself