0
WHY IN THIS CODE WHOLE NAME IS NOT PRINT
3 Antworten
+ 8
Replace
cin >> name;
with
getline(cin, name);
+ 2
You can also change chat to string
+ 1
char only stores one character. at the top put
#include <string>
then use the string data type instead.