|
|
|
@ -37,9 +37,21 @@ Input input_data(std::istream& in, bool prompt) {
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
|
{
|
|
|
|
|
curl_global_init(CURL_GLOBAL_ALL);
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
if (argc > 1)
|
|
|
|
|
{
|
|
|
|
|
cout << "argc = " << argc << endl;
|
|
|
|
|
for (int i = 0; i < argc; ++i)
|
|
|
|
|
{
|
|
|
|
|
cout << "argv[" << i << "] = " << argv[i] << endl;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
auto in = input_data(cin,true);
|
|
|
|
|
auto bins = make_histogram(in.bin_count, in.numbers);
|
|
|
|
|
show_histogram_svg(bins);
|
|
|
|
|