pdasilva18
Newbie level 1
I know this is kind of late, but I feel obligated to share this info. To get "white space" with the rest of your string until enter is pressed you could use the following code I got from here https://www.cplusplus.com/reference/string/getline/
Example:
Example:
Code:
#include <iostream>
#include <string>
int main()
{
string path;
cout << "Enter some text with white space: ";
getline(cin,path);
cout << "You entered: " << path << endl;
}