+ 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
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.