Hi, I'm a new user of this webside and also a begginer of C++. Hopefully can get somehelp from you guys. :)
Now I meet some problems, anybody can help me with the coding?
Requirement: Write a simple C++ program using cin and cout. The program will read from cin, cout the number of words read, until the end of file(eof). Then display the last word together with the number of words read.
Sample Input:
I am a fresh man here
Please kindly help me 1,2,3
Sample Output:
last word: 1,2,3
Word count: 11
Friends, hopefully can get your reply before 31, Sep... :D
Thanks a lot.