Which getline are you trying to use? If you're trying to use a member function, then it needs to be written as a member function of whatever it's a member of (presumably stdin.getline).