Not sure what to call the subject.

Im trying to access a member of a class from an array of them from within the class.

Kinda like this

typedef class cow
{
int a;
int b;

b=CowList[7].a;

}cow;

cow CowList[10];

Is there such thing as a Variable prototype or something of that nature.