If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Albeit there are probably thousands of better ways to write this, I'm still new and learning. Now, my problem is in line 35(at the moment) in bold. I'm getting an error I don't know how to make sense of. It says..

If your array has 10 elements, they are numbered 0 to 9. There is no element [10].

void getName(string namesArray[])
{}
you are writing the definition as if you are expecting to pass in an array of strings

void getName( string [] nameArray )
{}

however, when you are calling the getName function in the boldened statement, you are passing only one string of the string array.

So ... what is it going to be? Look in your textbook or notes about using an array as an argument for a function, and if you truly are passing an array all you use to refer to the array is the array's name, without any brackets, since this refers to the start of the contiguous memory locations where the elements of the array are stored.