Visual C++ .NET/Class/static field

Материал из .Net Framework эксперт
Версия от 12:05, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

static class field

 
#include "stdafx.h"
#include <stdio.h>
class Startup
{
   public:
   Startup()
   {
       printf("Initializing module.\n");
   }
};
class MyClass
{
     static Startup startup;
     MyClass(){
     }
};