//--- CList::GetFirstNode() için bir örnek
#include <Arrays\List.mqh>
//---
void OnStart()
{
CList *list=new CList;
//---
if(list==NULL)
{
printf("Nesne oluşturma hatası");
return;
}
//--- liste elemanları ekle
//--- . . .
CObject *object=list.GetFirstNode();
if(object==NULL)
{
printf("Eleman alınamadı");
delete list;
return;
}
//--- elemanı kullan
//--- . . .
//--- elemanı silme
//--- listeyi sil
delete list;
}
|