|
|
|
@ -2,6 +2,8 @@
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include "histogram.h"
|
|
|
|
|
#include "text.h"
|
|
|
|
|
#include "svg.h"
|
|
|
|
|
#include <curl/curl.h>
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
@ -35,6 +37,8 @@ Input input_data(istream& inx, bool prompt)
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
curl_global_init(CURL_GLOBAL_ALL);
|
|
|
|
|
|
|
|
|
|
bool prompt = true;
|
|
|
|
|
auto in = input_data(cin, prompt);
|
|
|
|
|
|
|
|
|
@ -44,7 +48,7 @@ int main()
|
|
|
|
|
|
|
|
|
|
double bin_size = (max - min) / in.bin_count;
|
|
|
|
|
|
|
|
|
|
show_histogram_text(bins,in.bin_count, bin_size);
|
|
|
|
|
show_histogram_svg(bins);
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|