need a help in strings im hopeless

i need to write a c++ program that prompt the user to enter a sentence consist of three words using the function getline, then the program should print the third word using the function (charctr.find) and find its length using the function (string .lenght)

screen shot :
Please enter a three word sentence : ali loves jordan
the last word in the sentence is : jordan
and its length is : 6
could you help my please !!!
Last edited on
http://www.cplusplus.com/reference/string/string/find/
http://www.cplusplus.com/reference/string/string/length/

There ya go... come back when you've actually tried to solve the problem yourself.
i know evrey thing a bout it i need your help in how to find the third word to any sentens the user enter and how to find ot length
Well what precedes every word in the English language?
If you "know everything about it", then you should have no problem with this. And no, you do not know EVERYTHING about them. Only a fool claims to know everything about a topic.
Topic archived. No new replies allowed.