Example #1
0
int main(void)
{
	pstruNode head;
	int num;
	printf("input the numbers:");
	scanf("%d", &num);

	head = CreatList(num);
	OutList(head, num);
	RevList(head, num);
	OutList(head, num);
}
Example #2
0
int main() {
	LNode* list = 0;
	InitLkList(list);
	InsertList(list,1, 30.0);
	InsertList(list, 1, 40.0);
	InsertList(list, 1, 50.0);
	InsertList(list, 1, 60.0);

	OutList(list);

	DeleteList(list,2);
	OutList(list);

	SetElem(list, 2, 78.56);
	OutList(list);
	return 0;
}