BaranovEK 11 месяцев назад
Родитель 8f5d8d90d6
Сommit 3710755ae3

@ -7,12 +7,13 @@
1716797551 c:\users\lenov\desktop\lab03\histogram.h 1716797551 c:\users\lenov\desktop\lab03\histogram.h
<vector> <vector>
1717517969 source:c:\users\lenov\desktop\lab03\main.cpp 1717518697 source:c:\users\lenov\desktop\lab03\main.cpp
<iostream> <iostream>
<vector> <vector>
"histogram.h" "histogram.h"
"text.h" "text.h"
"svg.h" "svg.h"
<curl/curl.h>
1716798974 c:\users\lenov\desktop\lab03\text.h 1716798974 c:\users\lenov\desktop\lab03\text.h
<vector> <vector>
@ -31,3 +32,56 @@
<string> <string>
"svg.h" "svg.h"
1717401831 c:\users\lenov\desktop\lab03\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"
1717401831 c:\users\lenov\desktop\lab03\curl\include\curl\curlver.h
1717401834 c:\users\lenov\desktop\lab03\curl\include\curl\system.h
<ConditionalMacros.h>
<inttypes.h>
<inttypes.h>
<sys/types.h>
<sys/socket.h>
<sys/poll.h>
1717401832 c:\users\lenov\desktop\lab03\curl\include\curl\easy.h
1717401833 c:\users\lenov\desktop\lab03\curl\include\curl\multi.h
"curl.h"
1717401834 c:\users\lenov\desktop\lab03\curl\include\curl\urlapi.h
"curl.h"
1717401833 c:\users\lenov\desktop\lab03\curl\include\curl\options.h
1717401832 c:\users\lenov\desktop\lab03\curl\include\curl\header.h
1717401835 c:\users\lenov\desktop\lab03\curl\include\curl\websockets.h
1717401832 c:\users\lenov\desktop\lab03\curl\include\curl\mprintf.h
<stdarg.h>
<stdio.h>
"curl.h"
1717401834 c:\users\lenov\desktop\lab03\curl\include\curl\typecheck-gcc.h

@ -3,6 +3,8 @@
#include "histogram.h" #include "histogram.h"
#include "text.h" #include "text.h"
#include "svg.h" #include "svg.h"
#include <curl/curl.h>
using namespace std; using namespace std;
struct Input { struct Input {
@ -34,6 +36,8 @@ input_data(istream& stream, bool prompt) {
int main() int main()
{ {
curl_global_init(CURL_GLOBAL_ALL);
Input in = input_data(cin, false); Input in = input_data(cin, false);
auto bins = make_histogram(in.numbers, in.bin_count); auto bins = make_histogram(in.numbers, in.bin_count);
show_histogram_svg(bins); show_histogram_svg(bins);

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