My homework assignment is to implement a class that represents a set of integers. Each set object may contain up to 100 integers. The main program will allow the user to create up to 10 different Set objects and perform actions on them. Actions such as return the interaction, union, difference,....etc.
I know that each set object will be an array. I can figure that much out. But, I am nsure how to go about letting the user name the 10 different Set objects. I can ask the user to enter a string but then how do I initialize the array using the string entered by the user?
int name; is how I would normally create an array with up to 100 integers. What I need to do is create an array that has the name entered by the user. If the string is s for instance, I stick int s; it doesn't work. Any help would be greatly appreciated.