InsertElement_L

LinkedList ››
Parent Previous Next

Язык программирования FreeBasic

 

InsertElement_L

InsertElement_L(List, element,value)

Вставляет элемент типа Longint в нужное место списка по указанному номеру.

List - Лист

element - Элемент, на место которого надо вставить

value - Значение

Пример:


#Include"Linked_Lists.bi"

Var list=NewList()

AddElement_L(List,544444)
AddElement_L(List,222222220224)
InsertElement_L(List,2,334343243)
FirstElement(list)
Do
 ? GetList_L(List)
Loop Until NextElement(list)=0

Sleep



http://mneniya.ucoz.ru/

Created with the Personal Edition of HelpNDoc: Easily create EBooks