2012-10-24, 07:54 PM
Code:
while (cin >> wordfile)That's an infinite loop.
Code:
if (ch == '?' || '.' || ';' || ':' || '!') {
++sentencecount;
++i;
}Why not use a switch statement? Or even, std::ispunct

