This inserts a ';' in the second position (in place of the 'i' in "This"). The CString class has a similar function (called, "Insert").Code:std::string myStr = "This is my string"; myStr.insert(2, ';');
Viggy
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 8 of 8
Thread: How can I put the ; in a string?Threaded View
|
Click Here to Expand Forum to Full Width |