Mega Code Archive

 
Categories / Visual C++ .NET / Data Type
 

Insert into a string

#include "stdafx.h" using namespace System; void main() {     String^ s1 = "This will ";     String^ s2 = "be a ";     String^ s3 = "String";     String^ s4 = s2;     //      String^ s6 = s3->Insert(3, "ange Str");     Console::WriteLine(String::Concat(s1, s2, s6)); }