0

WHY IN THIS CODE WHOLE NAME IS NOT PRINT

https://code.sololearn.com/c0UDPWI9ThgG/?ref=app

7th Sep 2017, 12:23 PM
Απmιη
Απmιη - avatar
3 Antworten
+ 8
Replace cin >> name; with getline(cin, name);
7th Sep 2017, 2:10 PM
Hatsy Rei
Hatsy Rei - avatar
+ 2
You can also change chat to string
7th Sep 2017, 2:28 PM
Siddharth Saraf
+ 1
char only stores one character. at the top put #include <string> then use the string data type instead.
7th Sep 2017, 12:38 PM
Enzo
Enzo - avatar