12345678910111213
#include <iostream> using namespace std; int main() { string response; cout << "Please enter a string:" << endl; cin >> response; cout << "Your string was" << response; return 0; }
12
Please enter a string: stringtest Your string was stringtest
#include <string>