From 3febdec957082e7c1799471fc3b3acfd84804bbb Mon Sep 17 00:00:00 2001 From: IvanovDA Date: Mon, 13 May 2024 16:01:33 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B0=D1=80=D0=B3=D1=83=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D0=BE=D0=B2=20=D0=BA=20=D1=84=D1=83=D0=BD=D0=BA?= =?UTF-8?q?=D1=86=D0=B8=D0=B8=20main()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cs-project3.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cs-project3.cpp b/cs-project3.cpp index a69a61f..3698e01 100644 --- a/cs-project3.cpp +++ b/cs-project3.cpp @@ -32,7 +32,13 @@ input_data(istream& inn, bool promt) { } -int main() { +int main(int argc, char* argv[]) { + if (argc > 1) { + for (int i = 0; i < argc; i++) { + cout << "argv ["<< i <<"] = " << argv[0] << endl; + } + return 0; + } curl_global_init(CURL_GLOBAL_ALL); bool promt = true; Input in = input_data(cin, promt);