All pastes #9572 Raw Edit

Someone

public text v1 · immutable
#9572 ·published 2005-04-14 22:01 UTC
rendered paste body
Error_code r_search(int data, list<Key<int> >::iterator &current)  
{	
		Key<int> tmp;
		tmp = *current;
		if (current == NULL)
		{
			return fail;
		}
		else if (current == data) return success;
		else
		{
			current++;
			r_search(data, current); 
		}
		//This just becomes too much of a pain, so I must switch to a class.
}