so I am asked to create a program with the following features:
the program is so that I can connect and disconnect countries. So say that I want to connect two countries, I input 2 integers that represent the countries. Say that country 1 and country 2 and 3 are adjacent/connected to each other and country 3 and 4 are connected. When I print the result it gives me:
Country 01 : 02 03
Country 02 : 01
Country 03 : 01 04
Country 04 : 03
My problem is that I need to store these connected countries in an array and the requirements are there can be a max of 100 countries?? So how can I do this without possibly having to declare 100 array variables for each country?