Greetings,
I need help with a Simple C program.
I have to take input data such as this :
Write a C program that will process a series of "words"
entered by the user. A word (for the purpose of this
assignment) is defined as a sequence of non-white-space
characters (anything other than a space, a tab, or a
newline). The following activities should be performed
in the program, and on the data entered by the user.
Does all of this sound right? You betcha!
and be able to count how many words are in it (66) , the longest word, how many capitalized words, how many sentences, the longest sentence, and the average length of words. We havent gotten in to any type of advanced coding so anything more complex than basic while-loops probly wont be of any help :(
Any help would be fine, this is my code so far.....its not saying much though /cry
#include <iostream>
int main() {
string word;
int wordCount = 0;
string line;
cout << "Enter Your Lines:" << endl << endl;
while (getline(cin,line))
endl;
return 0;
}