InsertSort
Elemento de inserções no array ordenado
bool InsertSort(
string element
)
|
Parâmetros
element
[in] o valor do elemento a ser inserido em array ordenado
Valor do Retorno
Exemplo
//--- example for CArrayString::InsertSort(string)
#include <Arrays\ArrayString.mqh>
//---
void OnStart()
{
CArrayString *array=new CArrayString;
//---
if(array==NULL)
{
printf("Object create error");
return;
}
//--- add arrays elements
//--- . . .
//--- sort array
array.Sort();
//--- insert element
if(!array.InsertSort("ABC"))
{
printf("Insert error");
delete array;
return;
}
//--- delete array
delete array;
}
|