Win32 tetris game problem

This is a discussion on Win32 tetris game problem within the C++ Programming forums, part of the General Programming Boards category; hi, im in the middle of making a tetris game program, but am having a few problems:-
1) I'm having ...

Have a cell class/struct. Then make a board class which has x by y cells. The cells can either be occupied or not. Then create each tetris piece by making 3x3 cell arrays. Then set which cells are visible and which aren't. For rotating, you'll just have to rotate the array itself, and the piece is automatically rotated.