visual studio getline not working code example Example: visual studio getline not working #include std::string line; getline(cin,line);