Hello, i've read that arrays are only passed by reference to member functions. I don't have a problem with this ,but what if i want to access a member variable contained in my array of objects by using a member function??. In the code below i've created an array of objects.In one of the array elements(line 18 , 3rd element for example) i want to access the variable 'author', but my IDE says it's unrecognisable in the member function? . please excuse any silly errors , i'm just after a general principle really?. Plus,I have used a constructor but just not shown it here.
okay. That sounds like quite an advanced topic?. i imagine there are many applications where large arrays of objects are declared in 'main', and then ideally you would want to carry out operations( mutator or accessor) to variables of those objects in a function of some sort, not in the 'main' part of the program which i'm doing at the moment?
Do you know any good resources/web sites for vectors?. Vectors are the last topic in my C++ book and i'm only about half way through!!