|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
#include <curl/curl.h>
|
|
|
|
#include <iostream>
|
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
|
|
|
#include <vector>
|
|
|
|
#include "histogram.h"
|
|
|
|
#include "histogram.h"
|
|
|
@ -31,6 +32,7 @@ input_data(istream& tin, bool prompt)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
int main()
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
curl_global_init(CURL_GLOBAL_ALL);
|
|
|
|
Input in = input_data(cin,true);
|
|
|
|
Input in = input_data(cin,true);
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
|
|
|
show_histogram_svg(bins);
|
|
|
|
show_histogram_svg(bins);
|
|
|
|