Visual C++ .NET/Language Basics/Constant
Create a Constant
#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;
const double PI = 3.14;
int main(void)
{
Console::WriteLine(PI);
return 0;
}
#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;
const double PI = 3.14;
int main(void)
{
Console::WriteLine(PI);
return 0;
}