返回首页   进站必读

17.5 节点遍历


17.5 节点遍历

void travel(void)
{
	link p;

	for (p = head; p != NULL; p = p->next)
		printf("%d\n", p->elem);
}