- 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 !!!
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