diff --git a/CommonVar.cpp b/CommonVar.cpp index f7bf6c3..8d16c82 100644 --- a/CommonVar.cpp +++ b/CommonVar.cpp @@ -41,9 +41,11 @@ void ShowHistogrammText(vector Bins); int main(int argc, char* argv[]) { curl_global_init(CURL_GLOBAL_ALL); if (argc > 1) { - for (size_t i = 0; i < argc; i++) { - cout << "arcv[" << i << "] = " << argv[i] << endl; - } + CURL* curl = curl_easy_init(); + CURLcode res; + curl_easy_setopt(curl, CURLOPT_URL, argv[1]); + res = curl_easy_perform(curl); + curl_easy_cleanup(curl); return 0; } double MaxCount = 0; @@ -52,4 +54,5 @@ int main(int argc, char* argv[]) { Bins = MakeHistogram(in.Numbers, in.BinCount, MaxCount); ShowHistogramSvg(Bins); return 0; + }