正在学C++/CLI,遇到个问题?
using namespace System;
//using namespace System::Text::RegularExpressions;
void AddParameter(String^ line)
{
line += "7 ";
}
int main(array <String^> ^ argv)
{
String^ line = gcnew String( "123456 ");
Console::WriteLine( "Operatin before AddParameter function is {0} ",line);
AddParameter(line);
Console::WriteLine( "Operatin after AddParameter function is {0} ",line);
line+= "8 ";
Console::WriteLine(line);
return 0;
}
为什line值不是 12345678
------解决方案--------------------------------------------------------
string 特殊性