Help with C++

Hey,

I ve been screwing around with this program for ages, and I cant get a decent run, now im a little confused at what to use, can someone please help me

Thanks

Write a C++ program that reads from keyboard 3 words, with proper input prompt. Then for these 3 words that were read, the program displays first the word of the longest length, then the word of the shortest length, and finally the remaining last word. You may assume that these 3 words are all different in lengths, or consider a word to be of the longest length if no other words exceed it in length.

Thanks
You just have to manipulate the strlen() function from string.h.
Just for an example:
if(strlen(s1)>strlen(s2)) cout<<"s1 is longer than s2";
Topic archived. No new replies allowed.