I'm having some problems with this excercise. The way this program works is the user enters in the number of data sets so lets say 3. Then the user enters in the number of floats then the floats and then presses enter for the second and third data sets. So an example input would be.
Enter the number of data sets: 3
3 12.5 3.4 6.7
5 7.7 5.5 8.8 3.3 5.7
2 89.3 84.5
After that the user picks what data to perform an operation on let's say data 2 which is the [5 7.7 5.5 8.8 3.3 5.7] and then return the max of the numbers.
Since we don't know what the number of data sets we have to use a dynamically allocated array which I did in my code, and have pointers point to that array to find the max of that specific data set. I think I need two arrays one to keep track of the data, and one to keep track of the sets. Here is my code.
Im having trouble in the gettingData method I want the users inputs to be put in that array, but when I print what the pointer points to it returns 0.0000 which isn't accurate.