ok, so i want a program that just says back to the user their input. the users input will be more then one word, so there will be whitespace. when i use string as a class for the input, then it only gives back the FIRST word of the input....
so i decided to use a vector, but i suck at them...
this is what i tried.. but on line 10, idk what to do :/ thnx!
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<string> s;
string v;
cin >> v;
s.push_back(v);
cout << endl << ????????; //all i want is to read all of the elements inside the vector, idk how....
}