Visual C++ .NET/Class/static field
static class field
#include "stdafx.h"
#include <stdio.h>
class Startup
{
public:
Startup()
{
printf("Initializing module.\n");
}
};
class MyClass
{
static Startup startup;
MyClass(){
}
};