Cin.getline() doesnt work with string class?

Then how to accept the sentance/paragraph in string

hello @sagar_aggarwal
u can read line by following syntax.

getline(cin, string_name ) ;