How can I assign pointer member with long string?
Posted
by Nano HE
on Stack Overflow
See other posts from Stack Overflow
or by Nano HE
Published on 2010-05-18T07:25:42Z
Indexed on
2010/05/18
7:30 UTC
Read the original article
Hit count: 205
Hi, When I did the practice below to erase my pointer member and assign new value to it.
(*pMyPointer).member.erase();
(*pMyPointer).member.assign("Hello"); // Successfully
Than I tried more...
(*pMyPointer).member.erase();
(*pMyPointer).member.assign("Long Multi Lines Format String"); // How to?
If the long multi lines string can't quote by double quoter, how to handle it. Thank you.
© Stack Overflow or respective owner