|
|
|
@ -17,8 +17,12 @@ struct Input
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Input
|
|
|
|
|
input_data(istream& in){
|
|
|
|
|
cerr << "Input numbers count: ";
|
|
|
|
|
input_data(istream& in, bool prompt)
|
|
|
|
|
{
|
|
|
|
|
if (prompt)
|
|
|
|
|
{
|
|
|
|
|
cerr << "Enter number count: ";
|
|
|
|
|
}
|
|
|
|
|
size_t number_count;
|
|
|
|
|
in >> number_count;
|
|
|
|
|
|
|
|
|
@ -37,13 +41,14 @@ input_data(istream& in){
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
Input in = input_data(cin);
|
|
|
|
|
auto in = input_data(cin, true);
|
|
|
|
|
|
|
|
|
|
auto bins = make_histogramm(in.numbers, in.bin_count);
|
|
|
|
|
|
|
|
|
|
show_histogram_svg(bins);
|
|
|
|
|
|
|
|
|
|
getch();
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|