# include <string>using namespace std;
...
string str;
is >> str;