From b60bda4025e0364200d54313e04fe672ce92590b Mon Sep 17 00:00:00 2001 From: IshutinaYI Date: Mon, 5 Jun 2023 10:20:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=B0=D1=80=D0=B3?= =?UTF-8?q?=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=BE=D0=B2=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fin_lab34.cbp | 17 +++++++++++++++++ fin_lab34.cpp | 13 +++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/fin_lab34.cbp b/fin_lab34.cbp index 2b3d25a..b30f2e7 100644 --- a/fin_lab34.cbp +++ b/fin_lab34.cbp @@ -14,6 +14,11 @@ + + + + + + + + + + + + + + diff --git a/fin_lab34.cpp b/fin_lab34.cpp index d17181d..929da32 100644 --- a/fin_lab34.cpp +++ b/fin_lab34.cpp @@ -3,9 +3,11 @@ #include #include #include +#include #include "histogram.h" #include "text.h" #include "svg.h" + const size_t WINDOW_WIDTH = 80; const size_t MAX_VALUE = WINDOW_WIDTH - 3 - 1; using namespace std; @@ -33,8 +35,15 @@ input_data(istream &thread, bool &prompt){ } int -main(){ - double min = 0, max = 0; +main(int argc, char* argv[]){ + curl_global_init(CURL_GLOBAL_ALL); + if (argc > 1) { + cout << argc << endl; + for (int i = 0; i < argc; i++){ + cout << argv[i] << endl; + } + } + //CURLcode curl_global_init(CURL_GLOBAL_ALL); size_t font = 0; bool prompt = false; auto in = input_data(cin, prompt);