Difference between "cin" and "getline( cin,input, '\n' );" ? So what is the difference between doing (assuming std and 'input' is a string)

    cin &gt;&gt; input;


and



    getline(cin, input, '\n');



?