- 1

How to store a string in char arrayed variable in c++ ?

I want help to store a sentence which contains multiple spaces, and it is not possible using cin and the function "gets" given in my book to do this task is not working here.... So help me plzzzz !!!

26th Feb 2020, 6:56 AM
Abhay
Abhay - avatar
1 Odpowiedź
+ 4
I believe you are talking about this and yes cin does work but you are also using getline. Please do not submit homework here or if you do always add your code attempts so that the community can help you. Thanks and happy coding https://code.sololearn.com/cN67Fwh47YuL/?ref=app
26th Feb 2020, 7:18 AM
BroFar
BroFar - avatar