I am new to programming and I am trying to open up a .csv file that is a large set of data with many values seperated each by a semi-colon. I would like to open this file and then run a 'for loop' on this set of data to find the minimum and maximum values. I already successfully ran the for loop for a random array of variables to test it. I have been searching for days trying to open this data and store into a map or array, so any help would be greatly appreciated.
I have also been trying to understand the differences between a map and array, but it's still not exactly clear to me. Sorry for these general questions.
Ryan
Here is what I've programmed so far just using a random array of variables, that I would like to replace with a large matrix of values from this .csv file:
There are thousands of duplicates of this question on the internet and even these forums, I've seen several just this week, and you say you've found nothing from searching for days?
There are thousands of duplicates of this question on the internet and even these forums, I've seen several just this week, and you say you've found nothing from searching for days?
Perhaps I have come across a possible solution, but haven't recognized it. My level of programming is very basic, so I'm still trying to make sense out of everything.
A map is nothing like an array, it is an associative container that associates keys with values.
Okay, but both a map and array can store 2d data correct?
maps are a different animal. A map has a key value. The key is 1d, but there is no reason the object that each map entry stores can't be 2d. Not clear from the data you posted that this is the best approach.
Do you know the maximum number of columns in advance?