#include
//delete and return by value
//if succeed reutrn true , else return false;
if(L.length==0)
return false;
value = L.data[0];
int pos = 0;
for(i=0;i<L.length;i++)
{
if(value>L.data[i]){
value=L.data[i];
}
pos = i;//pos++;
}
L.data[pos]=L.data[L.length];
L.length--;
//put the last in pos;
return value;
return 0;
}