Hello, this program is from Principles and Practice Using C++ 2nd Ed. by BS on page 123. The program is supposed to accept a list of space-separated words and then print them out alphabetically. However, it gets stuck in the first for-loop. Any insight is appreciated, thanks.
I reread through the book and it actually does say that in order to break the loop, he expects you to do Ctrl+Z for windows. Not very user friendly of course but it works. Yours works too.
FYI, the sort function is overloaded and defined in the "std_lib_facilities.h" Hope my use of terminology is proper.