⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tree.h

📁 C和指针非常好的一本书.里面的有许多代码可以借鉴.
💻 H
字号:
/*
** Interface for a binary search tree module
*/

#define	TREE_TYPE	int	/* Type of value in the tree */

/*
** insert
**	Add a new value to the tree.  The argument is the value
**	to be added and must not already exist in the tree.
*/
void	insert( TREE_TYPE value );

/*
** find
**	Searches for a specific value, which is passed as the first
**	argument.
*/
TREE_TYPE *find( TREE_TYPE value );

/*
** pre_order_traverse
**	Does a pre-order traversal of the tree.  The argument is a
**	pointer to a callback function that will be called for
**	each node in the tree, with the value passed as an argument.
*/
void	pre_order_traverse( void (*callback)( TREE_TYPE value ) );

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -