+ 1
What is problem in this code? Why this program is not execute ?plz tell me
2 Answers
+ 2
At line 7 change 'char name[10]' to 'string name'
At line 9 change 'char' to 'string'
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.