Этот коммит содержится в:
2025-05-30 11:51:01 +03:00
родитель 328a9f28bb
Коммит 960722ab48
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@@ -36,7 +36,12 @@
<Compiler> <Compiler>
<Add option="-Wall" /> <Add option="-Wall" />
<Add option="-fexceptions" /> <Add option="-fexceptions" />
<Add directory="D:/Projects_Code_Blocks/2_halfYear/Lab4/Lab1/curl/include" />
</Compiler> </Compiler>
<Linker>
<Add library="curl/lib/libcurl.dll.a" />
<Add directory="D:/Projects_Code_Blocks/2_halfYear/Lab4/Lab1/curl/lib" />
</Linker>
<Unit filename="histogram.cpp"> <Unit filename="histogram.cpp">
<Option target="Debug" /> <Option target="Debug" />
</Unit> </Unit>
@@ -47,8 +52,6 @@
<Option target="&lt;{~None~}&gt;" /> <Option target="&lt;{~None~}&gt;" />
</Unit> </Unit>
<Unit filename="main.cpp" /> <Unit filename="main.cpp" />
<Unit filename="prot.cpp" />
<Unit filename="prot.h" />
<Unit filename="svg.cpp" /> <Unit filename="svg.cpp" />
<Unit filename="svg.h" /> <Unit filename="svg.h" />
<Unit filename="text.cpp"> <Unit filename="text.cpp">

Просмотреть файл

@@ -1,3 +1,5 @@
#include <curl/curl.h>
using namespace std; using namespace std;
#include "histogram.h" #include "histogram.h"
#include "text.h" #include "text.h"
@@ -14,6 +16,7 @@ Input input_data(istream& in, bool promt);
int main() int main()
{ {
curl_global_init(CURL_GLOBAL_ALL);
Input in = input_data(cin,true); Input in = input_data(cin,true);
std::vector<size_t> bins = make_histogram(in.numbers, in.bin_count); std::vector<size_t> bins = make_histogram(in.numbers, in.bin_count);