#Why is "getline" command have red under it?

14 messages · Page 1 of 1 (latest)

forest hawkBOT
#

@dire sonnet has reached level 1. GG!

dire sonnet
#

idk why

#

look

pastel mango
upbeat quiver
#

Try including the string header and see if that solves the problem.

worthy scarab
dire sonnet
upbeat quiver
#

getline() comes from the string header, just like cin/cout comes from iostream.

On line 3, do:
#include <string>

#

See if that solves the problem.

worthy scarab
forest hawkBOT
#

@worthy scarab has reached level 6. GG!