Declare a string named line and write a statement that reads in the next line of standard input into this variable.

Declare a string named line and write a statement that reads in the next line of standard input into this variable.

LANGUAGE: C++

CHALLENGE:

Declare a string named line and write a statement that reads in the next line of standard input into this variable.

SOLUTION:



string  line;
getline (cin,line);

Add comment