|
|
|
@ -35,20 +35,20 @@ Input input_data(istream& inx, bool prompt)
|
|
|
|
|
return in;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
|
{
|
|
|
|
|
curl_global_init(CURL_GLOBAL_ALL);
|
|
|
|
|
if (argc > 1) {
|
|
|
|
|
cout << "argc = " << argc << endl;
|
|
|
|
|
for (int i = 0; i < argc; ++i) {
|
|
|
|
|
cout << "argv[" << i << "] = " << argv[i] << endl;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool prompt = true;
|
|
|
|
|
auto in = input_data(cin, prompt);
|
|
|
|
|
curl_global_init(CURL_GLOBAL_ALL);
|
|
|
|
|
|
|
|
|
|
auto in = input_data(cin, true);
|
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
|
|
|
|
|
|
|
|
|
double min, max;
|
|
|
|
|
|
|
|
|
|
double bin_size = (max - min) / in.bin_count;
|
|
|
|
|
|
|
|
|
|
show_histogram_svg(bins);
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|