Obviously there are some functions and members missing for productLine, but should be enough info to debug. Could someone help? Am i missing something?
1) You need to declare the size of the products array in the class. As a general rule, you can never have empty brackets. About the only exception is when passing as a function parameter.
1 2 3
static ProductLine * products[]; // bad
static ProductLine * products[20]; // good
2) products is an array of pointers. This means products[0] is a pointer, which means products[0].pc makes no sense. You probably meant products[0]->pc
3) Do you ever actually have the pointers point to something? Setting products[0] like you're doing will only work if they point to an existing object. Are you sure those are supposed to be pointers?