Wednesday, February 20, 2013

C++ program that run under CLR

// This is also known as managed code
// This not a native c++ program

# include "stdafx.h"

using namespace System;

int main(array<System::String ^> ^args)
{
    Console::WriteLine(L"Hello World");
    Console::ReadLine();
    return 0;
}

//This is almost default code when we choose CLR Console application in visual C++ 2010


No comments:

Post a Comment