#include <iostream>

class cell {
private:
    int CL[4][4][4] = {}; 
public:
    void SET(const int A[4]) {
        CL[A[0]][A[1]][A[2]] = A[3];
    }

    int Get(const int A[3]) const {
        return CL[A[0]][A[1]][A[2]];
    }
};

int main() {
    cell k;

    int a1[4] = {0, 0, 0, 4};
    k.SET(a1);

    int a2[3] = {0, 0, 0};
    std::cout << k.Get(a2) << std::endl;

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: