What is an Index

I need to know what an Index is in plain English. I have looked it up, but all of it is confusing non-English English… If you know what i mean, but anyway what is an Index?

An index in programming is exactly like an index in a book. It’s a list of ‘words’ which point you to the ‘pages’ which contain the actual information about the ‘words’.

In arrays, the ‘word’ is just a number. _skill[0] means “The zeroth ‘page’ of _skill”. Array ‘pages’ are actual objects - in this case, a Skill.

Before you can use _skill, there’s two things you need to do:

You need to ‘initialize’ the array - _skill = new Skill[ howMany ]; - and, if Skill is not a base type (int, char, float, etc) - you need to initialize each element: _skill[elementNumber] = new Skill().

What do you want to know ? Oo.

What is an index in an array ?