|
|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include "histogram.h"
|
|
|
|
|
#include "svg.h"
|
|
|
|
|
#include <curl/curl.h>
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
@ -35,10 +36,13 @@ Input input_data(istream& in, bool prompt=false) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main(){
|
|
|
|
|
|
|
|
|
|
if (curl_global_init(CURL_GLOBAL_ALL)!=0){
|
|
|
|
|
cerr << "failed cURL" << endl;
|
|
|
|
|
return 1;
|
|
|
|
|
};
|
|
|
|
|
auto in = input_data(cin);
|
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
|
|
|
|
show_histogram_svg(bins);
|
|
|
|
|
|
|
|
|
|
curl_global_cleanup();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|