SE250:lab-4:Tsen009: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
m 5 revision(s)  | 
			
(No difference) 
 | 
Latest revision as of 05:19, 3 November 2008
Introduction
Well the the point of the lab was to follow the lab tasks really.... so stop beeing lazy, and go read the hand out and figure out which task is which
int length(Cons* list)
 int length(Cons* list){
	
     int lengthCounter = 0; 
	 for( ; list != nil; list = list->tail ) {
	     lengthCounter ++;
	 }
	
	 return lengthCounter;
     
 }
this will return the number of elements in your list that you input...
===element_t first