How to read input a line in c++
How to read input a line in c++
#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
getline(cin,s); //use getline
cout<<s<<endl;
return 0;
}
No comments