Visual C++ .NET/Language Basics/namespace
Hello world without namespace
#include "stdafx.h"
int main()
{
System::Console::WriteLine("Hello, World!");
}
Using System namespace
#include "stdafx.h"
#using "mscorlib.dll"
using namespace System;
int main()
{
Console::WriteLine("Hello World!");
}