A
Adam Thickett
Hey Peeps,
I have written a statistics program and am trying to design the layout
so that the results are in a window that can be hidden via a toggle
button (like in the send/recieve box in MSOutlook). If anyone knows
how to do this that would be great .
If i can't get a dropdown window as described above then i'd like to
be able to make the attached window (see below code) to totally cover
up the previous one as currently the windows are cascading within the
defined frame. Does anyone know fix or get round this.
If you don't know exactly what i mean then please ask and i'll fill in
the gaps
int main()
{
winio("%ca[Statistics & Numerical Methods Engine]&");
//winio("%ww[casts_shadow]&");
winio("%cv&", &com);
winio("%`cnPlease type in the data seperated by commas (,)
below\n&");
winio("%rs\n&", man_input, 30);
winio("%`^bt[calculate]\t%bt@\n&", calculate, exit);
winio("%fr", 280, 400);
}
..
..
..
void output()
{
int i;
winio("%aw%sp&", &com, 0 , 0);
winio("%ww[no_caption]%lw&", &results);
winio("\nMin = %`rf&", &min);
winio("\nMax = %`rf&", &max);
winio("\nSum = %.2wf&", sum);
winio("\nArithmetic Mean = %.2wf&", arithmetic_mean);
winio("\nGeometric Mean = %.2wf&", geo_mean);
winio("\nHarmonic Mean = %.2wf&", harmonic_mean);
winio("\nRange = %.2wf&", range);
winio("\nSemi-Interquartile Range = %.2wf&", semi_inter_range);
if(mode_na > 1)
{
winio("\nMode = &");
for(i=0 ; i<mode_na ; i++)
{
winio("%.2wf,&", mode_val);
}
winio("(Multimodal Data)&");
}
else
{
winio("\nMode = %.2wf&", mode);
}
winio("\nMedian = %.2wf&", median);
winio("\nMax Deviation = %.2wf&", max_deviation);
winio("\nMean Deviation = %.2wf&", mean_dev);
winio("\nMedian Deviation = %.2wf&", median_dev);
winio("\nMode Deviation= %.2wf&", mode_dev);
winio("\nPopulation Variance = %.2wf&", pop_variance);
winio("\nSample Variance = %.2wf&", samp_variance);
winio("\nPopulation Standard Deviation = %.2wf&", pop_stand_dev);
winio("\nSample Standard Deviation = %.2wf", samp_stand_dev);
}
Thanks in advance
Adam Thickett
I have written a statistics program and am trying to design the layout
so that the results are in a window that can be hidden via a toggle
button (like in the send/recieve box in MSOutlook). If anyone knows
how to do this that would be great .
If i can't get a dropdown window as described above then i'd like to
be able to make the attached window (see below code) to totally cover
up the previous one as currently the windows are cascading within the
defined frame. Does anyone know fix or get round this.
If you don't know exactly what i mean then please ask and i'll fill in
the gaps
int main()
{
winio("%ca[Statistics & Numerical Methods Engine]&");
//winio("%ww[casts_shadow]&");
winio("%cv&", &com);
winio("%`cnPlease type in the data seperated by commas (,)
below\n&");
winio("%rs\n&", man_input, 30);
winio("%`^bt[calculate]\t%bt@\n&", calculate, exit);
winio("%fr", 280, 400);
}
..
..
..
void output()
{
int i;
winio("%aw%sp&", &com, 0 , 0);
winio("%ww[no_caption]%lw&", &results);
winio("\nMin = %`rf&", &min);
winio("\nMax = %`rf&", &max);
winio("\nSum = %.2wf&", sum);
winio("\nArithmetic Mean = %.2wf&", arithmetic_mean);
winio("\nGeometric Mean = %.2wf&", geo_mean);
winio("\nHarmonic Mean = %.2wf&", harmonic_mean);
winio("\nRange = %.2wf&", range);
winio("\nSemi-Interquartile Range = %.2wf&", semi_inter_range);
if(mode_na > 1)
{
winio("\nMode = &");
for(i=0 ; i<mode_na ; i++)
{
winio("%.2wf,&", mode_val);
}
winio("(Multimodal Data)&");
}
else
{
winio("\nMode = %.2wf&", mode);
}
winio("\nMedian = %.2wf&", median);
winio("\nMax Deviation = %.2wf&", max_deviation);
winio("\nMean Deviation = %.2wf&", mean_dev);
winio("\nMedian Deviation = %.2wf&", median_dev);
winio("\nMode Deviation= %.2wf&", mode_dev);
winio("\nPopulation Variance = %.2wf&", pop_variance);
winio("\nSample Variance = %.2wf&", samp_variance);
winio("\nPopulation Standard Deviation = %.2wf&", pop_stand_dev);
winio("\nSample Standard Deviation = %.2wf", samp_stand_dev);
}
Thanks in advance
Adam Thickett