|
|
|
@ -6,6 +6,7 @@
|
|
|
|
|
#include "text.h"
|
|
|
|
|
#include "svg.h"
|
|
|
|
|
#include "histogram_internal.h"
|
|
|
|
|
#include <curl/curl.h>
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
struct Input {
|
|
|
|
@ -32,9 +33,11 @@ input_data(istream &tin, bool prompt){
|
|
|
|
|
tin >> in.bin_count;
|
|
|
|
|
return in;
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
curl_global_init(CURL_GLOBAL_ALL);
|
|
|
|
|
Input in = input_data(cin, false);
|
|
|
|
|
auto bins = make_histogramm(in.numbers, in.bin_count);
|
|
|
|
|
show_histogram_svg(bins);
|
|
|
|
|