Сравнить коммиты

...

2 Коммитов

Автор SHA1 Сообщение Дата
5d4f217423 showing errors 2024-09-30 07:36:29 +03:00
9565d8769f test promt arguments 2024-09-30 07:25:59 +03:00

Просмотреть файл

@@ -2,6 +2,7 @@
#include "histogram.h"
#include "svg.h"
#include <vector>
#include <curl/curl.h>
using namespace std;
@@ -39,7 +40,17 @@ Input input_data(istream& sin, bool prompt)
}
}
int main() {
int main(int argc, char* argv[]) {
if (argc > 1) {
CURL* curl = curl_easy_init();
auto res = curl_easy_perform(curl);
if (res != 0) {
cout << curl_easy_strerror(res);
exit(1);
}
curl_easy_cleanup(curl);
return 0;
}
Input in = input_data(cin, false);
auto bins = make_histogram(in.numbers, in.bin_count);
show_histogram_svg(bins);