C++ (Qt)#include <QVector>#include <QDebug> typedef QVector<int> ivec; int main(){ int a = 10, b = 20; QVector<ivec>mas(a, ivec(b)); mas[0][0] = 0; mas[0][1] = 5; qDebug() << mas[0][0] << " " << mas[0][1]; return 0;}
C++ (Qt)template <class T>using rubber_array2d = std::map<int, std::map<int, T>>; rubber_array2d<int> array;array[0][0] = 1;array[0][1] = 3;// и т.д..
C++ (Qt)Qmap<int, Qmap<int, int> > a;
C++ (Qt)for (int i = 0; i < numRow; ++i) for (int j = 0; j < numCol; ++j) arr[i][j] = 0;