Mega Code Archive

 
Categories / Visual C++ .NET / Development
 

Add string to StringBuilder

#include "stdafx.h" using namespace System; using namespace System::IO; using namespace System::Text; int main(array<System::String ^> ^args) {     StringBuilder ^tmppath = gcnew StringBuilder();     tmppath->Append("c:\\");     tmppath->Append(" ");     String ^path = tmppath->ToString()->Trim();     return 0; }