<pre name="code" class="cpp">
string s2;
getline(cin,s2);
cout << s2;*/ //way one
string s2;
getline(cin,s2);
cout << s2;*/ //way one
char s[100];
scanf("%[^\n]%*c",s);//way two
char s[100];
gets(s);//way three
char s[100];
cin.get(s,100);//way four
char s[100];
cin.getline(s,100);//way five