Using System namespace
#include "stdafx.h" #using "mscorlib.dll" using namespace System; int main() { Console::WriteLine("Hello World!"); }