<<<Index>>>

C++ String and std::getline( )



    #include <iostream>
    #include <string> 
    int main()
    {
        std::cout << "Please enter a line of text and hit enter: ";
        std::string input;
        std::getline( std::cin, input );
        std::cout << "You entered: " << input << std::endl;
        return 0;
    }

<<<Index>>>