vector problem

hi, I need the help!
Write a program that reads an unspecified number of lines of text from STDIN, terminated with EOF. Each line will contain one single word with no whitespace. (so the input will consist of zero or more words.)
Your program should store all of the four letter words and all of the five letter words. Discard any inputs with fewer than four or more than five characters. Store the words in all lowercase only (HINT: <cctype> )
After input is complete, if the number of four and five letter words input is equal, then your program should have no output. Otherwise output either the four or five letter words, whichever is greater in number. You may output them in any order. Your program will have no other output (so no prompts, names, greetings etc.)
Your program should make use of the vector, as described in class and the textbook.

I show my problem in vector problem2
Last edited on
Hi,
Well, best place is at the point where you realise this isn't a homework site and showing us where you are having problems etc with work you have put in. Cut and paste the assignment doesn't count.
Everybody here is glad to help when you get off the starting blocks :)
Topic archived. No new replies allowed.