how to take input and print a multiword string cpp code example
Example: c++ reading string
#include <iostream>
#include <string>
string str;
getline(cin, str);
//str contains line
#include <iostream>
#include <string>
string str;
getline(cin, str);
//str contains line