Am writing program that will continue to prompt user to enter a word of 5 letters or less until 'q' is entered to quit. Upon quitting, it will disply results from 4 functions :<br>
1. total # of vowels (all words combined)<br>
2. total # of conenants (same as above)<br>
3. total # of words (simple counter)<br>
4. total # of words ending with 'k'<br>
Am using a while statement for the loop but can't get it to stop when {'q','\0'} is entered. Have assigned string to word[6] but it will take more than 5 letters and will not overwrite last word entered. <br>
All books I have referenced have sorting examples with numbers not letters and all examples have string or array within source code. <br>
Would appreciate any help that could be given.<br>
Thanks to all<br>
Ed
1. total # of vowels (all words combined)<br>
2. total # of conenants (same as above)<br>
3. total # of words (simple counter)<br>
4. total # of words ending with 'k'<br>
Am using a while statement for the loop but can't get it to stop when {'q','\0'} is entered. Have assigned string to word[6] but it will take more than 5 letters and will not overwrite last word entered. <br>
All books I have referenced have sorting examples with numbers not letters and all examples have string or array within source code. <br>
Would appreciate any help that could be given.<br>
Thanks to all<br>
Ed