void polynomial::get_poly() {
char c='y';
ptrn=ptrp=start=NULL;
while(c=='y' || c=='Y')
{
ptrn=new node;
ptrp=ptrn;
if(start==NULL)
start=ptrn;
cout<<"\nEnter the coefficient: ";
cin>>ptrn->coe;
cout<<"Enter the exponent: ";
cin>>ptrn->exp;
ptrn=ptrn->next;
cout<<"Enter y to add more nodes: ";
cin>>c;
}
return;
}
Wild guess, it has been ages since I last made linked lists.