www.pudn.com > 球和立方体.rar > MyLink.c


/************************************************************************************* 
*MyLink.c 
*************************************************************************************** 
*File name: 
*MyLink.c 
*Description: 
*This module control chain belt visitation. 
*Revised History: 
*1.0 2003.10.18 New Creation 
*Designer: 
*Tim.leung 
*Execution environment:VC++6.0 
*OS:Windows 98 
*References: 
* 
*Copyright(C) 2003 VOYAGER Corporation. All Rights Reserved. 
***************************************************************************************/ 
#ifndef _MY_LINK 
#define _MY_LINK 
 
#include  
#include  
#include  
#include "MyLink.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// CMultiViewsTestView message handlers 
/************************************************************************************* 
*GraphAddHead 
************************************************************************************** 
*Description: 
*This Function control chain belt visitation. 
*Argument: 
*GraphNode* head 
*GraphNode* pNewNode 
*Global: 
*return: 
*GraphNode* head 
*Designer: 
*Tommy.Leung 
*Revised History: 
*1.0 2003.10.18 New Creation 
**************************************************************************************/ 
 
GraphNode* GraphAddHead(GraphNode* head , GraphNode* pNewNode) 
{ 
	if(head) 
	{ 
		pNewNode->next = head; 
		head = pNewNode; 
	} 
	else 
	{ 
		head = pNewNode; 
	} 
	return head; 
} 
 
#endif