data structures C programs

源代码在线查看: sl_new.m

软件大小: 127 K
上传用户: jianmingcao
关键词: structures programs data
下载地址: 免注册下载 普通下载 VIP

相关代码

				function sl=sl_new
				% SL_NEW
				%
				%  sl=SL_NEW returns an empty singly linked list.
				%  Singly linked list has a dummy node as its head.
				
				% Copyright (c) MathWorks Inc. 1998-2001. All rights reserved.
				
				if nargout				  error('one output argument required.');
				end
				
				sl.head=pointer;
				sl.head.next=0;
				sl.tail=sl.head;
				
							

相关资源