Displaying a vector of strings in C++
问题 I'm sorry if this is a repeat question but I already tried to search for an answer and came up empty handed. So basically I just want to add strings (single words) to the back of a vector and then display the stored strings as a single string. I am quite the rookie. #include <iostream> #include <vector> #include <string> #include <cctype> using namespace std; int main(int a, char* b []) { vector<string> userString; string word; string sentence = ""; for (decltype(userString.size()) i = 0; i <