Since all the class definitions are missing, I added the references to them.
The chained list indicates that multiple sellers are intended.
The product data are then probably simple member variables that can be read in and assigned.
bool Product::insert()
{
class Seller_Data St;
Seller_Node* temp = new Seller_Node;
temp->data = St;
temp->next = head;
head = temp;
cout << "\nSeller successfully Inserted..!\n\n";
return true;
}
Note: I'm a bit puzzled that the sellers are tediously managed with a self-created chained list, while the products are obviously comfortably managed in an STD container. Sellers should also be managed in an STD container.