1. getline() To get an entire line from cin, there exists a function, called getline, that takes the stream (cin) as first argument, and the string variable as second. Ex : io.cpp