You need to add
#include <string>
to be able to use std::string
and std::getline()
. Without that even the line
string str;
will most likely produce a compiler error.
2
solved MSVS 2015 getline() function does not work? (C++)
You need to add
#include <string>
to be able to use std::string
and std::getline()
. Without that even the line
string str;
will most likely produce a compiler error.
2
solved MSVS 2015 getline() function does not work? (C++)