Howdy all.
I'm having an issue tackling my assignment. my givens are I have an int pointer, which is supposed to point to an array of values. This pointer is in a private part of my class. However, I have a specific set of values I want to pass in, with a particular order from my main program.
these values are such: {5,3,6,8,4,2,9,1,10,7}
I thought, well, I could create an array in my main to store these values, then pass these values manually through a set function to the array in my class. which seems like there might be a more elegant solution, especially if I were to have to deal with this on a larger scale.
Any suggestions, questions, or help is much appreciated.