2012-10-23, 04:47 PM
Your problem is that you are using i before checking it, at the bottom of the loop.
Normally this loop would look like
I don't know if you're supposed to know "for" loops yet, but if you do, the canonical form would be:
Normally this loop would look like
Code:
i = 0;
while (i < wordsize)
{
ch = word.at(i);
... if vowel ... blah blah...
i++;
}I don't know if you're supposed to know "for" loops yet, but if you do, the canonical form would be:
Code:
for (int i = 0; i < wordsize; i++)
{
ch = word.at(i);
.... checking ch ...
}
