добавлены аргументы

master
TiutinMO 4 месяцев назад
Родитель 44f2ca4bd5
Сommit 13449b6ca3

@ -3,6 +3,7 @@
#include "histogram.h"
#include "text.h"
#include "svg.h"
#include <curl/curl.h>
using namespace std;
struct Input {
@ -32,7 +33,12 @@ Input input_data(istream& in, bool prompt) {
return inp;
}
int main() {
int main(int argc, char* argv[]) {
curl_global_init(CURL_GLOBAL_ALL);
if (argc > 1){
cerr << "argv[0] = " << argv[0] << "argc = " << argc;
return 0;
}
auto in = input_data(cin, true);
auto bins = make_histogram(in.numbers, in.bin_count);
show_histogram_svg(bins);

Загрузка…
Отмена
Сохранить