Good Sir! I thank you for that literature. VERY informative stuff. I haven't finished reading through it but i just got an idea.
consider this approach:
class Song
{
public:
Song(int notesArray, int pin);
void play();
private"
int *_notesArray;
int _songCount;
int _pin;
};
Song::Song(int notesArray, int pin)
{
_notesArray = notesArray;
_pin = pin;
}
Before I go on, My question now is, if I made an instance as such:
int piezzo = 2;
int notesArrayNyan[] = {1,2,3,4} ///and so on...
Song nyanCat(notesArrayNyan, piezzo);
will my _notesArray pointer now point to the address of notesArrayNyan[0]?