Структуры (записи)

#include <iostream>
using namespace std;

struct Setting {
    //type field
    static string Path;

    //In C++ there are no properties
    static int Mode;

    //type method
    static void SetNextMode() {
        Mode = (Mode + 1) % 3;
    }
};

//initialization
string Setting::Path = "";
int Setting::Mode = 0;

Setting::Mode = 3;
Setting::SetNextMode();
//Setting.Mode is 1

cout << "Mode is " << Setting::Mode;