C++ (Qt)class ABC{public: static int table[10][10];};
C++ (Qt)void Widget::MyEventHandler1() { ABC.table[1][1] = 5; return; }
C++ (Qt)//обрабатывает клики мышкой в форме компьютераvoid Form_comp::mousePressEvent( QMouseEvent *mouseEvent ) { mouse_x = mouseEvent->x() / 25; mouse_y = mouseEvent->y() / 25; if(pole_Comp[mouse_x][mouse_y] == 0) pole_Comp[mouse_x][mouse_y] = 1; else pole_Comp[mouse_x][mouse_y] = 0; update(); return; }