getline is undefined code example
Example 1: getline doesn't work visual studio
#include <string>
Example 2: visual studio getline not working
#include<string>
std::string line;
getline(cin,line);
#include <string>
#include<string>
std::string line;
getline(cin,line);