Reading an entire Line using getline function

This video tutorial explains how you can read an entire line from a stream using the getline function.
You are gonna learn what happens when we try to read an entire line using stream extraction operators, what is the syntax of getline function, how to use getline function in detail with example.

source code for this tutorial

#include <iostream>

using namespace std;

int main()
string data;


cout << data;

return 0;