I am trying to make linked list and i am wondering if it is possible to make multiple linked lists without having to create them one by one.
I have a certain number of physical nodes (airports) and each node has a number of temporal nodes (departure times). I would like to make a linked list for every airport (airport 1, airport 2, airport 3...) containing the departure times of that airport. The number of airports depend on the instance and can sometimes be very large. Is it possible to make a loop to create rapidly all the linked lists like:
for (int i = 0; i<nbAirports; i++)
{
struct airport i ***to include the i in the name of the structure and therefore it would change at every iteration *********
{
int aeroport;
int heure;
i *nxt;
};
}