подключение cURL к проекту
Этот коммит содержится в:
128
lab03.depend
128
lab03.depend
@@ -30,15 +30,15 @@
|
|||||||
"svg.h"
|
"svg.h"
|
||||||
<string>
|
<string>
|
||||||
|
|
||||||
1746452588 source:c:\users\koldinad\desktop\lab34\histogram.cpp
|
1748102935 source:c:\users\koldinad\desktop\lab34\histogram.cpp
|
||||||
"histogram.h"
|
"histogram.h"
|
||||||
<iostream>
|
<iostream>
|
||||||
<vector>
|
<vector>
|
||||||
|
|
||||||
1746451370 c:\users\koldinad\desktop\lab34\histogram.h
|
1748104048 c:\users\koldinad\desktop\lab34\histogram.h
|
||||||
<vector>
|
<vector>
|
||||||
|
|
||||||
1745846055 source:c:\users\koldinad\desktop\lab34\text.cpp
|
1748102935 source:c:\users\koldinad\desktop\lab34\text.cpp
|
||||||
"text.h"
|
"text.h"
|
||||||
<iostream>
|
<iostream>
|
||||||
<vector>
|
<vector>
|
||||||
@@ -46,3 +46,125 @@
|
|||||||
1745846054 c:\users\koldinad\desktop\lab34\text.h
|
1745846054 c:\users\koldinad\desktop\lab34\text.h
|
||||||
<vector>
|
<vector>
|
||||||
|
|
||||||
|
1748104048 source:c:\users\koldinad\desktop\lab34\svg.cpp
|
||||||
|
"svg.h"
|
||||||
|
<string>
|
||||||
|
|
||||||
|
1748103959 c:\users\koldinad\desktop\lab34\svg.h
|
||||||
|
<iostream>
|
||||||
|
<vector>
|
||||||
|
|
||||||
|
1748112464 source:c:\users\koldinad\desktop\lab34\main.cpp
|
||||||
|
<iostream>
|
||||||
|
<vector>
|
||||||
|
"histogram.h"
|
||||||
|
"text.h"
|
||||||
|
"svg.h"
|
||||||
|
<curl/curl.h>
|
||||||
|
|
||||||
|
1748110813 c:\users\koldinad\desktop\lab34\curl\include\curl\curl.h
|
||||||
|
"curlver.h"
|
||||||
|
"system.h"
|
||||||
|
<stdio.h>
|
||||||
|
<limits.h>
|
||||||
|
<sys/param.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"
|
||||||
|
"mprintf.h"
|
||||||
|
"typecheck-gcc.h"
|
||||||
|
|
||||||
|
1748110813 c:\users\koldinad\desktop\lab34\curl\include\curl\curlver.h
|
||||||
|
|
||||||
|
1748110814 c:\users\koldinad\desktop\lab34\curl\include\curl\system.h
|
||||||
|
<ConditionalMacros.h>
|
||||||
|
<inttypes.h>
|
||||||
|
<inttypes.h>
|
||||||
|
<sys/types.h>
|
||||||
|
<sys/socket.h>
|
||||||
|
<sys/poll.h>
|
||||||
|
|
||||||
|
1748110813 c:\users\koldinad\desktop\lab34\curl\include\curl\easy.h
|
||||||
|
|
||||||
|
1748110814 c:\users\koldinad\desktop\lab34\curl\include\curl\multi.h
|
||||||
|
"curl.h"
|
||||||
|
|
||||||
|
1748110814 c:\users\koldinad\desktop\lab34\curl\include\curl\urlapi.h
|
||||||
|
"curl.h"
|
||||||
|
|
||||||
|
1748110814 c:\users\koldinad\desktop\lab34\curl\include\curl\options.h
|
||||||
|
|
||||||
|
1748110813 c:\users\koldinad\desktop\lab34\curl\include\curl\header.h
|
||||||
|
|
||||||
|
1748110814 c:\users\koldinad\desktop\lab34\curl\include\curl\websockets.h
|
||||||
|
|
||||||
|
1748110814 c:\users\koldinad\desktop\lab34\curl\include\curl\mprintf.h
|
||||||
|
<stdarg.h>
|
||||||
|
<stdio.h>
|
||||||
|
"curl.h"
|
||||||
|
|
||||||
|
1748110814 c:\users\koldinad\desktop\lab34\curl\include\curl\typecheck-gcc.h
|
||||||
|
|
||||||
|
1748114270 c:\users\koldinad\desktop\lab34\curl1\include\curl\curl.h
|
||||||
|
"curlver.h"
|
||||||
|
"system.h"
|
||||||
|
<stdio.h>
|
||||||
|
<limits.h>
|
||||||
|
<sys/param.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"
|
||||||
|
"mprintf.h"
|
||||||
|
"typecheck-gcc.h"
|
||||||
|
|
||||||
|
1748114270 c:\users\koldinad\desktop\lab34\curl1\include\curl\curlver.h
|
||||||
|
|
||||||
|
1748114270 c:\users\koldinad\desktop\lab34\curl1\include\curl\system.h
|
||||||
|
<ConditionalMacros.h>
|
||||||
|
<inttypes.h>
|
||||||
|
<inttypes.h>
|
||||||
|
<sys/types.h>
|
||||||
|
<sys/socket.h>
|
||||||
|
<sys/poll.h>
|
||||||
|
|
||||||
|
1748114270 c:\users\koldinad\desktop\lab34\curl1\include\curl\easy.h
|
||||||
|
|
||||||
|
1748114270 c:\users\koldinad\desktop\lab34\curl1\include\curl\multi.h
|
||||||
|
"curl.h"
|
||||||
|
|
||||||
|
1748114270 c:\users\koldinad\desktop\lab34\curl1\include\curl\urlapi.h
|
||||||
|
"curl.h"
|
||||||
|
|
||||||
|
1748114270 c:\users\koldinad\desktop\lab34\curl1\include\curl\options.h
|
||||||
|
|
||||||
|
1748114270 c:\users\koldinad\desktop\lab34\curl1\include\curl\header.h
|
||||||
|
|
||||||
|
1748114270 c:\users\koldinad\desktop\lab34\curl1\include\curl\websockets.h
|
||||||
|
|
||||||
|
1748114270 c:\users\koldinad\desktop\lab34\curl1\include\curl\mprintf.h
|
||||||
|
<stdarg.h>
|
||||||
|
<stdio.h>
|
||||||
|
"curl.h"
|
||||||
|
|
||||||
|
1748114270 c:\users\koldinad\desktop\lab34\curl1\include\curl\typecheck-gcc.h
|
||||||
|
|
||||||
|
|||||||
4
main.cpp
4
main.cpp
@@ -28,10 +28,12 @@ input_data(istream& in, bool prompt=false)
|
|||||||
return inn;
|
return inn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include <curl/curl.h>
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
size_t max_count;
|
size_t max_count;
|
||||||
auto inn = input_data(cin);
|
auto inn = input_data(cin, true);
|
||||||
auto bins = make_histogram(inn.numbers, inn.bin_count);
|
auto bins = make_histogram(inn.numbers, inn.bin_count);
|
||||||
show_histogram_svg(bins);
|
show_histogram_svg(bins);
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user