Hello,

I am writting functions to read soccer data from the openfooty API. I am
facing a data structure problem that I cannot solve:

Each team has fixtures (scheduled games), and each fixture has it own data
(league, home team, away team, date, etc).

I have created a class for Team with a slot to hold a set of Fixtures, but
I'm not sure how should I proceed with it.

Since each Fixture has its own attributes I have to create a class for one
singular Fixture. Although I also need to group a set of Fixtures to inject
them into a slot of the Team class. How should I group them? I first
thought of a List, but to write the command to generate it, I show foreknow
the number of items I'll store on it. But I don't. The number of fixtures
is different for each team. There are vectors for numeric, character,
boolean. Is it possible to create a vector of Fixtures?

In short, how would be the best (or some possible) data structure for this?

Many Thanks,

Joćo Daniel

	[[alternative HTML version deleted]]

