библиотека
Этот коммит содержится в:
1
.gitignore
поставляемый
1
.gitignore
поставляемый
@@ -1,2 +1,3 @@
|
|||||||
/bin
|
/bin
|
||||||
/obj
|
/obj
|
||||||
|
/curl
|
||||||
|
|||||||
@@ -13,7 +13,12 @@
|
|||||||
<Option compiler="gcc" />
|
<Option compiler="gcc" />
|
||||||
<Compiler>
|
<Compiler>
|
||||||
<Add option="-g" />
|
<Add option="-g" />
|
||||||
|
<Add directory="curl/include" />
|
||||||
</Compiler>
|
</Compiler>
|
||||||
|
<Linker>
|
||||||
|
<Add library="libcurl.dll.a" />
|
||||||
|
<Add directory="curl/lib" />
|
||||||
|
</Linker>
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="Release">
|
<Target title="Release">
|
||||||
<Option output="bin/Release/1 lab" prefix_auto="1" extension_auto="1" />
|
<Option output="bin/Release/1 lab" prefix_auto="1" extension_auto="1" />
|
||||||
|
|||||||
53
lab01.depend
53
lab01.depend
@@ -3,11 +3,12 @@
|
|||||||
<iostream>
|
<iostream>
|
||||||
<vector>
|
<vector>
|
||||||
|
|
||||||
1694008250 source:c:\users\texas\desktop\lab01\main.cpp
|
1694257548 source:c:\users\texas\desktop\lab01\main.cpp
|
||||||
<math.h>
|
<math.h>
|
||||||
<vector>
|
<vector>
|
||||||
<iostream>
|
<iostream>
|
||||||
<string.h>
|
<string.h>
|
||||||
|
<curl/curl.h>
|
||||||
"histogram.h"
|
"histogram.h"
|
||||||
"text.h"
|
"text.h"
|
||||||
"svg.h"
|
"svg.h"
|
||||||
@@ -31,7 +32,55 @@
|
|||||||
<vector>
|
<vector>
|
||||||
<string>
|
<string>
|
||||||
|
|
||||||
1694007750 source:c:\users\texas\desktop\lab01\svg.cpp
|
1694256460 source:c:\users\texas\desktop\lab01\svg.cpp
|
||||||
"svg.h"
|
"svg.h"
|
||||||
<math.h>
|
<math.h>
|
||||||
|
|
||||||
|
1694255976 c:\users\texas\desktop\lab01\curl\include\curl\curl.h
|
||||||
|
"curlver.h"
|
||||||
|
"system.h"
|
||||||
|
<stdio.h>
|
||||||
|
<limits.h>
|
||||||
|
<osreldate.h>
|
||||||
|
<sys/types.h>
|
||||||
|
<time.h>
|
||||||
|
<winsock2.h>
|
||||||
|
<ws2tcpip.h>
|
||||||
|
<sys/select.h>
|
||||||
|
<sys/socket.h>
|
||||||
|
<sys/time.h>
|
||||||
|
"easy.h"
|
||||||
|
"multi.h"
|
||||||
|
"urlapi.h"
|
||||||
|
"options.h"
|
||||||
|
"header.h"
|
||||||
|
"websockets.h"
|
||||||
|
"typecheck-gcc.h"
|
||||||
|
|
||||||
|
1694255976 c:\users\texas\desktop\lab01\curl\include\curl\curlver.h
|
||||||
|
|
||||||
|
1694255976 c:\users\texas\desktop\lab01\curl\include\curl\system.h
|
||||||
|
<ConditionalMacros.h>
|
||||||
|
<winsock2.h>
|
||||||
|
<windows.h>
|
||||||
|
<ws2tcpip.h>
|
||||||
|
<sys/types.h>
|
||||||
|
<sys/socket.h>
|
||||||
|
<sys/poll.h>
|
||||||
|
|
||||||
|
1694255976 c:\users\texas\desktop\lab01\curl\include\curl\easy.h
|
||||||
|
|
||||||
|
1694255976 c:\users\texas\desktop\lab01\curl\include\curl\multi.h
|
||||||
|
"curl.h"
|
||||||
|
|
||||||
|
1694255976 c:\users\texas\desktop\lab01\curl\include\curl\urlapi.h
|
||||||
|
"curl.h"
|
||||||
|
|
||||||
|
1694255976 c:\users\texas\desktop\lab01\curl\include\curl\options.h
|
||||||
|
|
||||||
|
1694255976 c:\users\texas\desktop\lab01\curl\include\curl\header.h
|
||||||
|
|
||||||
|
1694255976 c:\users\texas\desktop\lab01\curl\include\curl\websockets.h
|
||||||
|
|
||||||
|
1694255976 c:\users\texas\desktop\lab01\curl\include\curl\typecheck-gcc.h
|
||||||
|
|
||||||
|
|||||||
56
lab01.layout
56
lab01.layout
@@ -2,44 +2,44 @@
|
|||||||
<CodeBlocks_layout_file>
|
<CodeBlocks_layout_file>
|
||||||
<FileVersion major="1" minor="0" />
|
<FileVersion major="1" minor="0" />
|
||||||
<ActiveTarget name="Debug" />
|
<ActiveTarget name="Debug" />
|
||||||
<File name="main.cpp" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="15" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="17" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="svg.h" open="1" top="0" tabpos="7" split="0" active="1" splitpos="0" zoom_1="20" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="88" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="text.cpp" open="1" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="11" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="19" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name=".gitignore" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="7" topLine="0" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="text.h" open="1" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="13" zoom_2="0">
|
<File name="text.h" open="1" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="13" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="69" topLine="0" />
|
<Cursor1 position="69" topLine="0" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="histogram.cpp" open="1" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="14" zoom_2="0">
|
|
||||||
<Cursor>
|
|
||||||
<Cursor1 position="326" topLine="15" />
|
|
||||||
</Cursor>
|
|
||||||
</File>
|
|
||||||
<File name="histogram.h" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="16" zoom_2="0">
|
<File name="histogram.h" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="16" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="62" topLine="0" />
|
<Cursor1 position="175" topLine="0" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
<File name="svg.cpp" open="1" top="0" tabpos="8" split="0" active="1" splitpos="0" zoom_1="16" zoom_2="0">
|
<File name="main.cpp" open="1" top="1" tabpos="2" split="0" active="1" splitpos="0" zoom_1="15" zoom_2="0">
|
||||||
<Cursor>
|
<Cursor>
|
||||||
<Cursor1 position="16" topLine="0" />
|
<Cursor1 position="909" topLine="23" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="svg.h" open="1" top="0" tabpos="7" split="0" active="1" splitpos="0" zoom_1="20" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="168" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="svg.cpp" open="1" top="0" tabpos="8" split="0" active="1" splitpos="0" zoom_1="17" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="18" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="histogram.cpp" open="1" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="17" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="566" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name=".gitignore" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="15" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="19" topLine="0" />
|
||||||
|
</Cursor>
|
||||||
|
</File>
|
||||||
|
<File name="text.cpp" open="1" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="11" zoom_2="0">
|
||||||
|
<Cursor>
|
||||||
|
<Cursor1 position="448" topLine="0" />
|
||||||
</Cursor>
|
</Cursor>
|
||||||
</File>
|
</File>
|
||||||
</CodeBlocks_layout_file>
|
</CodeBlocks_layout_file>
|
||||||
|
|||||||
2
main.cpp
2
main.cpp
@@ -2,6 +2,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
#include "histogram.h"
|
#include "histogram.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
@@ -45,6 +46,7 @@ input_data(istream& in) {
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
|
|
||||||
auto in = input_data(cin);
|
auto in = input_data(cin);
|
||||||
auto bins = make_histogram(in.numbers, in.bin_count);
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
||||||
|
|||||||
1
svg.cpp
1
svg.cpp
@@ -1,5 +1,4 @@
|
|||||||
#include "svg.h"
|
#include "svg.h"
|
||||||
#include "histogram.h"
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user