diff --git a/histogram.cpp b/histogram.cpp index 9a04267..77ef532 100644 --- a/histogram.cpp +++ b/histogram.cpp @@ -1,4 +1,4 @@ -#include "histogram.h" + #include "histogram.h" #include using namespace std; @@ -33,4 +33,3 @@ vector make_histogram(vector numbers, size_t bin_count) { } return bins; } - diff --git a/lab03.cbp b/lab03.cbp index a413538..3ab87bf 100644 --- a/lab03.cbp +++ b/lab03.cbp @@ -31,7 +31,12 @@ + + + + + diff --git a/main.cpp b/main.cpp index 986cec4..0f10f1d 100644 --- a/main.cpp +++ b/main.cpp @@ -36,8 +36,12 @@ Input input_data(istream& in, bool prompt) { -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);