Сравнить коммиты
2 Коммитов
07473c60bf
...
5d4f217423
| Автор | SHA1 | Дата | |
|---|---|---|---|
| 5d4f217423 | |||
| 9565d8769f |
13
main.cpp
13
main.cpp
@@ -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);
|
||||
|
||||
Ссылка в новой задаче
Block a user