types in a multidimensional array
I have an assignment for class to create a shopping list that will have an item, its priority, and the price, and those things have to be called by the user later on. I feel like the easiest way to do this should be by creating a multidimensional array, but I'm not sure how to (or if I can) use different types (string, int, double) in an array. Is this possible?
Re: types in a multidimensional array
use different types (string, int, double) in an array. Is this possible?
Look at defining a class to hold all the different data types.