thes e function works. but if i concat literal strings with '+', i must use '(string)'. so i'm trying overload the operator + for concat literal strings, but without sucess:(
You cannot overload operator+ to work with two char* because you are not allowed to overload operators without at least one of the parameters being a user-created type. You could, if you wanted, just make a named function that does the same thing, but then I'd ask why you aren't just using strcat().