+ 1

How to add space to cin with this code

help guys I want this code to work https://code.sololearn.com/c3N56fj1tsRL/?ref=app

28th Sep 2022, 9:40 AM
haidar mahdi
3 Answers
+ 3
Try getline string a; getline(cin, a); if(a=="how are you") cout<<"good";
28th Sep 2022, 9:43 AM
Ani Jona šŸ•Š
Ani Jona šŸ•Š - avatar
+ 3
Ani Jona šŸ•Š thank you so muchšŸ‘šŸ»
28th Sep 2022, 10:01 AM
haidar mahdi
0
std::cout<<" "; or you can use manipulators
28th Sep 2022, 10:04 AM
A S Raghuvanshi
A S Raghuvanshi - avatar