Ive got a form project in c++ and I need to be able to display a string in a console. Here is my code (which doesnt work). Are there any better ways?
std::string neemac = GenMacAddr();
//Copy
String^ str2 = gcnew String(neemac.c_str());
//Finish
system("echo ------------------------------------ && echo Generated Mac: " + str2 + " && echo ------------------------------------ && pause");