first of many posts here. I'm at a crossroads in a project i'm working on at the moment, but i'm very near the end...
I'm trying to create an array of objects, which I will be sorting and performing calculations on; so I'll running procedures on individual objects as well as comparing the objects across the array of objects I'm trying to make.
I thought I just about had it...but the function I'm trying to run a sort in cannot see the array; or says the object elements are undeclared, depending on a few issues...
--I tried having the function to sort inside the class but I am confused how to make an array of elements of the same object within its class
--I initially had a very messy main...I held the array of objects in it, and tried creating another function, not inside the class; however, the values of the object were undeclared--I tried correcting this by opening the private class data types to public...but nothing
Performing calculations on each individual object hasn't been an issue; however, when trying to sort or compare then array is undeclared or data types are undeclared...
I'm guessing its a scope issue, but haven't been able to resolve it wherever I move my code...