Oleg 2 лет назад
Родитель ea43935bf3
Сommit 5fe9d80705

1
.gitignore поставляемый

@ -1,2 +1,3 @@
/bin
/obj
/curl

@ -13,7 +13,12 @@
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
<Add directory="curl/include" />
</Compiler>
<Linker>
<Add library="libcurl.dll.a" />
<Add directory="curl/lib" />
</Linker>
</Target>
<Target title="Release">
<Option output="bin/Release/1 lab" prefix_auto="1" extension_auto="1" />

@ -3,11 +3,12 @@
<iostream>
<vector>
1694008250 source:c:\users\texas\desktop\lab01\main.cpp
1694257548 source:c:\users\texas\desktop\lab01\main.cpp
<math.h>
<vector>
<iostream>
<string.h>
<curl/curl.h>
"histogram.h"
"text.h"
"svg.h"
@ -31,7 +32,55 @@
<vector>
<string>
1694007750 source:c:\users\texas\desktop\lab01\svg.cpp
1694256460 source:c:\users\texas\desktop\lab01\svg.cpp
"svg.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

@ -2,44 +2,44 @@
<CodeBlocks_layout_file>
<FileVersion major="1" minor="0" />
<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">
<File name="text.h" open="1" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="13" zoom_2="0">
<Cursor>
<Cursor1 position="17" topLine="0" />
<Cursor1 position="69" 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">
<File name="histogram.h" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="16" zoom_2="0">
<Cursor>
<Cursor1 position="88" topLine="0" />
<Cursor1 position="175" 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">
<File name="main.cpp" open="1" top="1" tabpos="2" split="0" active="1" splitpos="0" zoom_1="15" zoom_2="0">
<Cursor>
<Cursor1 position="19" topLine="0" />
<Cursor1 position="909" topLine="23" />
</Cursor>
</File>
<File name=".gitignore" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<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="7" topLine="0" />
<Cursor1 position="168" 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="svg.cpp" open="1" top="0" tabpos="8" split="0" active="1" splitpos="0" zoom_1="17" zoom_2="0">
<Cursor>
<Cursor1 position="69" topLine="0" />
<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="14" zoom_2="0">
<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="326" topLine="15" />
<Cursor1 position="566" topLine="0" />
</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=".gitignore" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="15" zoom_2="0">
<Cursor>
<Cursor1 position="62" topLine="0" />
<Cursor1 position="19" topLine="0" />
</Cursor>
</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="text.cpp" open="1" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="11" zoom_2="0">
<Cursor>
<Cursor1 position="16" topLine="0" />
<Cursor1 position="448" topLine="0" />
</Cursor>
</File>
</CodeBlocks_layout_file>

@ -2,6 +2,7 @@
#include <vector>
#include <iostream>
#include <string.h>
#include <curl/curl.h>
#include "histogram.h"
#include "text.h"
@ -45,6 +46,7 @@ input_data(istream& in) {
int main()
{
curl_global_init(CURL_GLOBAL_ALL);
auto in = input_data(cin);
auto bins = make_histogram(in.numbers, in.bin_count);

@ -1,5 +1,4 @@
#include "svg.h"
#include "histogram.h"
#include <math.h>

Загрузка…
Отмена
Сохранить