Void fun (const char *);
Void fun (const STD: : string & amp;);
It is necessary to write a string version?
CodePudding user response:
Want to write write bai,
CodePudding user response:
Is there a need to go into this world time?

CodePudding user response:
I want to overload, but also feel a little more, choose difficult disease, heavy not overloaded
CodePudding user response:
Don't need to, you can directly use STD: : string. C_str () was introduced into the first function
CodePudding user response: