+ 1

What is problem in this code? Why this program is not execute ?plz tell me

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

23rd Jun 2018, 6:14 AM
Devang H Baroliya
Devang H Baroliya - avatar
2 Answers
+ 2
At line 7 change 'char name[10]' to 'string name' At line 9 change 'char' to 'string'
23rd Jun 2018, 7:16 AM
ODLNT
ODLNT - avatar
0
If you're using strings, don't forget to add "#include <string>" in the beginning of file. But, if you would like to use char instead,change: at line 7: "char name[10]" to "char* name"; at line 9: "char" to "char*" Of course, the strings are mostly better.
23rd Jun 2018, 7:22 AM
f3d0rov
f3d0rov - avatar