|
|
|
@ -59,14 +59,19 @@ input_data(istream& inn)
|
|
|
|
|
return in;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
|
{
|
|
|
|
|
if (argc > 1)
|
|
|
|
|
{
|
|
|
|
|
for (int i = 0; i > argc; i++)
|
|
|
|
|
{
|
|
|
|
|
cout << "argv[" << i << "] = " << argv[i];
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
curl_global_init(CURL_GLOBAL_ALL);
|
|
|
|
|
auto in = input_data(cin);
|
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
|
|
|
|
/*double min, max;
|
|
|
|
|
double bin_size = (max - min) / in.bin_count;
|
|
|
|
|
show_histogram_text(bins,in.bin_count, bin_size);*/
|
|
|
|
|
show_histogram_svg(bins);
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|