+ 1

What' wrong with it?

I created a program for operator overloading to add two object's member string variable . It works but it shows additional errors. And also if i put string data type instead of char array it shows error. https://code.sololearn.com/cA5K06QtdFVo/?ref=app And correct my code and insert on ur answre

14th Feb 2021, 3:06 PM
Jawahirullah
Jawahirullah - avatar
1 Réponse
+ 1
Add "(char *)" before strings for the constructors or assign those strings to variables of type <char *> or "char {name} [{length (not necessary)}]". "{possible text}" is the <string> literal, so it does that error.
14th Feb 2021, 3:28 PM
#0009e7 [get]
#0009e7 [get] - avatar