code: добавлен libcurl
Этот коммит содержится в:
7
.gitignore
поставляемый
Обычный файл
7
.gitignore
поставляемый
Обычный файл
@@ -0,0 +1,7 @@
|
|||||||
|
/bin
|
||||||
|
/obj
|
||||||
|
/prj.depend
|
||||||
|
/prj.layout
|
||||||
|
/type
|
||||||
|
/unitest.layout
|
||||||
|
/curl
|
||||||
4
main.cpp
4
main.cpp
@@ -6,9 +6,9 @@
|
|||||||
#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
|
||||||
{
|
{
|
||||||
vector<double> numbers;
|
vector<double> numbers;
|
||||||
@@ -41,6 +41,8 @@ input_data(istream& in, bool prompt)
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
|
|
||||||
auto in = input_data(cin, true);
|
auto in = input_data(cin, true);
|
||||||
|
|
||||||
auto bins = make_histogramm(in.numbers, in.bin_count);
|
auto bins = make_histogramm(in.numbers, in.bin_count);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user