InsertElement_S

LinkedList ››
Parent Previous Next

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

 

InsertElement_S

InsertElement_S(List, element,value)

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

List - Лист

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

value - Значение

Пример:


#Include"Linked_Lists.bi"

Var list=NewList()

AddElement_S(List,"1654543545")
AddElement_S(List,"343432")
InsertElement_S(List,2,"3333333333")
FirstElement(list)
Do
 ? GetList_S(List)
Loop Until NextElement(list)=0

Sleep



http://mneniya.ucoz.ru/

Created with the Personal Edition of HelpNDoc: Write EPub books for the iPad