diff --git a/cs-lab34.vcxproj b/cs-lab34.vcxproj index 1afea30..663602f 100644 --- a/cs-lab34.vcxproj +++ b/cs-lab34.vcxproj @@ -104,10 +104,13 @@ true _DEBUG;_CONSOLE;%(PreprocessorDefinitions) true + D:\cs-lab34\curl\include;%(AdditionalIncludeDirectories) Console true + D:\cs-lab34\curl\lib;%(AdditionalLibraryDirectories) + $(CoreLibraryDependencies);libcurl.dll.a;%(AdditionalDependencies) diff --git a/main.cpp b/main.cpp index d0a1f8b..77a8949 100644 --- a/main.cpp +++ b/main.cpp @@ -4,6 +4,8 @@ #include "histogram.h" #include "text.h" #include "svg.h" + +#include using namespace std; struct Input { vector numbers; @@ -53,6 +55,7 @@ input_data(istream& in, bool prompt) { int main() { + curl_global_init(CURL_GLOBAL_ALL); const size_t SCREEN_WIDTH = 80; const size_t MAX_ASTERISK = SCREEN_WIDTH - 3 - 1; auto in1 = input_data(cin,true);