What is this data structure called?
Here's the data structure I have in mind: names of football (soccer) teams running across the top row and down the left col, something like:
Code:
Arsenal Spurs Chelsea //edit: this line should be indented right but keeps going back left!
Arsenal
Spurs
Chelsea
Main diagonal == one that runs top left to bottom right
Above main diagonal - scores from matches where the team in the header row was the home team
Below main diagonal - scores from matches where the team in the left col was the home team
Obviously the main diagonal itself is empty since no team plays itself!
Also, the top row and left col would be std::string datatype but the off-diagonal elements need to be able to take other datatypes
Is there a name for such a data structure and where could I find some sample code etc to get started?
Many thanks