linked list multiply
===

this code is part of homework about linked lists 

in the final process i got that last node of result list does not meet null however i set to  
, here is pic of debugging. 


    while(first)
	{       
		while(second)
		{    
			temp = new polynomial;

			temp->coef = (first->coef) * (second->coef) ;
			temp->exp = (first->exp) + (second->exp);

			temp->next = 0;
			result->next = temp; 
			second = second->next;
			delete(temp);
		}   
		first = first->next;
	}     


  [1]: http://i.stack.imgur.com/yHgAM.png