struct Square
{
int dx;
int dy;
};
struct Tetromino
{
Square s[4];
};
Tetromino t[7] = {
0,0, 1,0, 2,0, 3,0 ,
0,0, 0,1, 1,1, 2,1 ,
0,1, 1,1, 2,1, 2,0 ,
0,0, 1,0, 0,1, 1,1 ,
0,1, 1,1, 1,0, 2,0 ,
0,1, 1,1, 1,0, 2,1 ,
0,0, 1,0, 1,1, 2,1
};
You would be able to access the coordinate of Square j in Tetromino n as
t[n].s[j].dy or t[n].s[j].dx.