|
|
|
@ -39,14 +39,21 @@ input_data(istream& stream, bool prompt) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
int main(int argc, char* argv[]){
|
|
|
|
|
|
|
|
|
|
if (argc > 1){
|
|
|
|
|
auto i = 0;
|
|
|
|
|
while (i < argc){
|
|
|
|
|
cerr << "arg[" << i << "] = " << argv[i] << endl;
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
curl_global_init(CURL_GLOBAL_ALL);
|
|
|
|
|
bool prompt = true;
|
|
|
|
|
auto in = input_data(cin, prompt);
|
|
|
|
|
auto bins = make_histogram(in.numbers, in.bin_count, in.number_count, in.max_count);
|
|
|
|
|
vector<double> test;
|
|
|
|
|
show_histogram_svg(bins, in.max_count, in.bin_count, test);
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|