string s;
cout<< "Enter name: ";
cin >> s;
cout<<"\n"<<s;
on running this i need:
Enter name: Tejesh Kinariwala
Tejesh Kinariwala
it is showing:
Enter name: Tejesh Kinariwala
Tejesh
so how to get the input till user hits return key, instead of breaking it at space