I have a class Product:
class Product{
public:
int weight;
static *Product listOfProducts;
}
int main(){
Product ProductList[100];
*Product listPointer;
listPointer = ProductList;
Product::listOfProducts = listPointer;
}
I want to get a static pointer field to an array of this class' instances, but I have a bad understanding of how to do this.