+ 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 odpowiedzi
+ 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