void showAllData(DoubleStack *ds){
int i;
printf("show all stack data\n");
for(i = 0; i < ds->top; i++)
printf("%f\n", ds->stack[i]);
printf("stack data were dumped\n");
}
int pushDoubleData(DoubleStack *ds, double val){
if(ds->top == ds->size)
return 0;
ds->stack[ds->top++] = val;
printf("pushing value %f on Stack\n", val);
return 1;
}