Mega Code Archive

 
Categories / Visual C++ .NET / Data Type
 

Replace stuff in a concatenated string

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