diff --git a/.gitignore b/.gitignore index 9de2f31..89350fd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /obj /unittest.depend /unittest.layout +/curl diff --git a/bin/Debug/lab01.exe b/bin/Debug/lab01.exe index c59adc0..f2e82fb 100644 Binary files a/bin/Debug/lab01.exe and b/bin/Debug/lab01.exe differ diff --git a/bin/Debug/libcurl.dll b/bin/Debug/libcurl.dll new file mode 100644 index 0000000..6519835 Binary files /dev/null and b/bin/Debug/libcurl.dll differ diff --git a/lab01.depend b/lab01.depend index 2d35415..9489ef0 100644 --- a/lab01.depend +++ b/lab01.depend @@ -33,3 +33,86 @@ "svg.h" +1685900056 source:c:\users\kasma\desktop\lab04\cs-lab34\histogram.cpp + + + "histogram.h" + +1685900056 c:\users\kasma\desktop\lab04\cs-lab34\histogram.h + + +1685900056 source:c:\users\kasma\desktop\lab04\cs-lab34\svg.cpp + + + + + + "svg.h" + +1685900056 c:\users\kasma\desktop\lab04\cs-lab34\svg.h + + +1685900056 source:c:\users\kasma\desktop\lab04\cs-lab34\text.cpp + + + "text.h" + +1685900056 c:\users\kasma\desktop\lab04\cs-lab34\text.h + +1685909791 source:c:\users\kasma\desktop\lab04\cs-lab34\main.cpp + + + + "histogram.h" + "text.h" + "svg.h" + + +1685910057 c:\users\kasma\desktop\lab04\cs-lab34\curl\include\curl\curl.h + "curlver.h" + "system.h" + + + + + + + + + + + "easy.h" + "multi.h" + "urlapi.h" + "options.h" + "header.h" + "websockets.h" + "typecheck-gcc.h" + +1685910057 c:\users\kasma\desktop\lab04\cs-lab34\curl\include\curl\curlver.h + +1685910057 c:\users\kasma\desktop\lab04\cs-lab34\curl\include\curl\system.h + + + + + + + + +1685910057 c:\users\kasma\desktop\lab04\cs-lab34\curl\include\curl\easy.h + +1685910057 c:\users\kasma\desktop\lab04\cs-lab34\curl\include\curl\multi.h + "curl.h" + +1685910057 c:\users\kasma\desktop\lab04\cs-lab34\curl\include\curl\urlapi.h + "curl.h" + +1685910057 c:\users\kasma\desktop\lab04\cs-lab34\curl\include\curl\options.h + +1685910057 c:\users\kasma\desktop\lab04\cs-lab34\curl\include\curl\header.h + +1685910057 c:\users\kasma\desktop\lab04\cs-lab34\curl\include\curl\websockets.h + +1685910057 c:\users\kasma\desktop\lab04\cs-lab34\curl\include\curl\typecheck-gcc.h + diff --git a/main.cpp b/main.cpp index ab65cda..40cc6a0 100644 --- a/main.cpp +++ b/main.cpp @@ -4,6 +4,7 @@ #include "histogram.h" #include "text.h" #include "svg.h" +#include using namespace std; struct Input @@ -39,6 +40,7 @@ Input input_data(istream& in, bool prompt) int main() { + curl_global_init(CURL_GLOBAL_ALL); auto in = input_data(cin, true); auto bins = make_histogram(in.numbers, in.bin_count); show_histogram_svg(bins);