|
|
@ -52,8 +52,17 @@ input_data(istream& in, bool prompt) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
//curl_global_init(CURL_GLOBAL_ALL);
|
|
|
|
|
|
|
|
|
|
|
|
if (argc > 1) {
|
|
|
|
|
|
|
|
for (int i = 0; i < argc; ++i) {
|
|
|
|
|
|
|
|
cerr << "argv[" << i << "] = " << argv[i] << endl;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
curl_global_init(CURL_GLOBAL_ALL);
|
|
|
|
auto in = input_data(cin, true); //input data
|
|
|
|
auto in = input_data(cin, true); //input data
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count); //calculating bin size for the histogram
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count); //calculating bin size for the histogram
|
|
|
|
show_histogram_svg(bins, in.interval_task); //histogram output in the format svg code
|
|
|
|
show_histogram_svg(bins, in.interval_task); //histogram output in the format svg code
|
|
|
|