Mega Code Archive

 
Categories / Visual C++ .NET / Data Type
 

Create a copy, then concatenate new text

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