I'm learning C++ with VS 2017 using a text book called Programming: Principles and Practices Using C++ (second ed).
I'm beginning to think there is a conflict regarding the language used. The book focuses on C++11 and perhaps C++14 is what VS wants. Though I'm speculating.
The code below is taken straight out of the text book.
for(string temp; cin >> temp;)
cout << "Number of words: " << words.size() << '\n';
for(int i = 0; i < words.size(); ++i)
if (i == 0 || words[i-1] != words[i])
cout << words[i] << '\n';
return 0; // I have a break point at this line.
I'm suppose to be able to enter the following;
a man a plan a canal panama
Exactly as shown on the first line then press enter. It should then print to screen;
The issue is that when I do this and hit enter, nothing happens. The cursor moves to the beginning of the next line, the first line has the string of text, nothing. No output.
Edit: Found an up-to-date version of std_lib_facilities.h. Removed redundant headers and change the "sort" to match the book exactly without errors. Problem still persists.