keyMain= new Key_Node[X];
for(int i=0; i<X; i++)
{
keyMain[i].key=i;
cout << keyMain[i].key<<endl;
keyMain[i].next_package=NULL;
}
Am I doing it right here? I am not sure about it. It seems like the right thing to do, but can anybody confirm? Thank you.X is the number inputted by the user.