I don't know how can I get both a line and an integer in a program
for example take a look at this simple code:
the program ignores the getline.
how can I solve the problem?
for example take a look at this simple code:
Code:
string s; int x; cin >> x; getline( cin , s ); cout<< s << x ;
how can I solve the problem?
Comment