std::string strInput; std::cout << "Enter string" << std::endl; std::cin >> strInput; std::cout << "You enter: " << strInput << std::endl;