2012-10-24, 04:35 PM
Imagine Wrote:After each iteration, wouldn't ch plug in the new value of i every time?
No.
You didn't define ch to always be wordfile[i]. C++ doesn't even have an easy way to do that, except as a macro, which is very highly frowned upon. You could use a pointer (char*) instead of an index, if you've learned how to do that.

