The array index, currentWord, is being incremented beyond the end of the arrayInput[]. Find out why and fix it. Put a boundary condition on the increment, if necessary.
Type: Posts; User: GregBrannon
The array index, currentWord, is being incremented beyond the end of the arrayInput[]. Find out why and fix it. Put a boundary condition on the increment, if necessary.
Make it easier for us to help you. In this case, post EXACT error messages and sample runs that show the problem. For example, this is what I got when I ran your program:
Please input the...
Welcome to the forum! Thanks for taking the time to learn to post code correctly.
full stop = period or '.', right?
The general algorithm I would start with is to determine the number of words...