c++ - How can I assign pointer member with long string? -


When I used to do the following exercises to clear my pointers and specify a new value for it

  (* pMyPointer) .member.erase (); (* PMyPointer) .member.assign ("hello"); // successfully  

as much as I tried ...

  (* pMyPointer) .member.erase (); (* PMyPointer) .member.assign ("Long Multi-Lines Format String"); // how?  

If a long multi line string can not be quoted by double quotes, then how to manage it. Thank you.

I do not really have a clue what you might be trying to ask, :

  (* pMyPointer) .member.assign ("Long Multi-Lines Format String" "More Rows That Will Be Contained by Compiler");  

Or do you mean that the line break is as follows:

  (* pMyPointer) .member.assign ("Long Multi-Lines Format String \ N "" the more lines that will be processed by the compiler);  

Comments