I have an assignment in which one of the requirements is to read a file which has a person's name as well as their classes they have taken.
So basically the number of classes is not a set amount. (though it will be less than 10).
I planned on making a 2d array of strings for this so that the first column would be nothing but names. Then the following columns would be the classes taken for that name. When writing the code however I fell into a hard-spot where I realized that creating this 2d array (dynamically allocating memory) was really just creating a 2d array of characters.
Question is in order to make what I described before would I actually have to make a 3d array of characters? If so is there an easier way to go about this? Just wondering on opinions, because I'm sure if a 3d array solves this there must be an easier way.