diff --git a/l03.cpp b/l03.cpp index cdd9615..62d1df2 100644 --- a/l03.cpp +++ b/l03.cpp @@ -60,8 +60,28 @@ input_data(istream& in, bool promt) return input; } -int main() +int +main(int argc, char* argv[]) { + + if( argc > 1 ){ + + CURL* curl = curl_easy_init(); + + cout << argc << '\n'; + //while (true) + for (int i = 0; i < argc; i++){ + + cout << argv[i] << " "; + } + cout << endl; + + curl_easy_cleanup(curl); + + + return 0; + } + curl_global_init(CURL_GLOBAL_ALL); auto input = input_data(cin, true);