class StaticArray{
private:
int Array[100];
uint MaxI;
uint MaxJ;
public:
StaticArray( uint sizex, uint sizey){
/*... check if either arg is > 10 */
MaxI = sizex;
MaxJ = sizey;
}
int & operator()( uint i, uint j){
/*... check bounds of i and j */
return Array[i*MaxI + j];
}
};