test if for any list element the polynomial part of the data is equal to *p
| 375 | |
| 376 | // test if for any list element the polynomial part of the data is equal to *p |
| 377 | bool LNode::polyTest(poly* p) { |
| 378 | LNode* temp = new LNode(this); |
| 379 | while(NULL != temp) { |
| 380 | if(pComparePolys(temp->getPoly(),*p)) { |
| 381 | return 1; |
| 382 | } |
| 383 | temp = temp->next; |
| 384 | } |
| 385 | return 0; |
| 386 | } |
| 387 | |
| 388 | LNode* LNode::getNext(LNode* l) { |
| 389 | return l->next; |