1 2 3 4 5 6 7 8 9 10 11
// Example program #include <iostream> #include <string> int main() { std::string name; std::cout << "What is your name? "; getline (std::cin, name); std::cout << "Hello, " << name << "!\n"; }