|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
#include <math.h>
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include <conio.h>
|
|
|
|
|
#include <cstring>
|
|
|
|
|
#include <curl/curl.h>
|
|
|
|
|
#include "histogram.h"
|
|
|
|
|
#include "text.h"
|
|
|
|
|
#include "svg.h"
|
|
|
|
@ -35,7 +35,14 @@ input_data(istream& in, bool prompt){
|
|
|
|
|
in >> input.bin_count;
|
|
|
|
|
return input;
|
|
|
|
|
}
|
|
|
|
|
int main(){
|
|
|
|
|
int main(int argc, char* argv[]){
|
|
|
|
|
if (argc>1){
|
|
|
|
|
for (size_t i =0; i<argc; i++){
|
|
|
|
|
cerr << "argv[" << i << "]= " << argv[i] << "\n";
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
curl_global_init(CURL_GLOBAL_ALL);
|
|
|
|
|
bool prompt;
|
|
|
|
|
auto in = input_data(cin, prompt);
|
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
|
|
|
|