code:libcurl.dll.a
Этот коммит содержится в:
1
.gitignore
поставляемый
1
.gitignore
поставляемый
@@ -1,3 +1,4 @@
|
|||||||
/bin
|
/bin
|
||||||
obj/
|
obj/
|
||||||
*.layout
|
*.layout
|
||||||
|
curl/
|
||||||
@@ -31,7 +31,13 @@
|
|||||||
<Compiler>
|
<Compiler>
|
||||||
<Add option="-Wall" />
|
<Add option="-Wall" />
|
||||||
<Add option="-fexceptions" />
|
<Add option="-fexceptions" />
|
||||||
|
<Add option="-DCURL_STATICLIB" />
|
||||||
|
<Add directory="C:/Users/Евгений/Desktop/laba N 3/Laba N 1/curl/include" />
|
||||||
</Compiler>
|
</Compiler>
|
||||||
|
<Linker>
|
||||||
|
<Add library="libcurl.a" />
|
||||||
|
<Add directory="C:/Users/Евгений/Desktop/laba N 3/Laba N 1/curl/lib" />
|
||||||
|
</Linker>
|
||||||
<Unit filename="histogram.cpp" />
|
<Unit filename="histogram.cpp" />
|
||||||
<Unit filename="histogram.h" />
|
<Unit filename="histogram.h" />
|
||||||
<Unit filename="ignor.gitignore" />
|
<Unit filename="ignor.gitignore" />
|
||||||
|
|||||||
4
main.cpp
4
main.cpp
@@ -1,5 +1,6 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <curl/curl.h>
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "histogram.h"
|
#include "histogram.h"
|
||||||
#include "svg.h"
|
#include "svg.h"
|
||||||
@@ -16,6 +17,7 @@ input_data(istream& inn,bool prompt) {
|
|||||||
if(prompt== true)
|
if(prompt== true)
|
||||||
{
|
{
|
||||||
Input in;
|
Input in;
|
||||||
|
cerr << "Enter number count: ";
|
||||||
inn >> in.number_count;
|
inn >> in.number_count;
|
||||||
vector<double> numbers(in.number_count);
|
vector<double> numbers(in.number_count);
|
||||||
in.numbers.resize(in.number_count);
|
in.numbers.resize(in.number_count);
|
||||||
@@ -23,6 +25,7 @@ input_data(istream& inn,bool prompt) {
|
|||||||
inn >> in.numbers[i];
|
inn >> in.numbers[i];
|
||||||
}
|
}
|
||||||
size_t bin_count;
|
size_t bin_count;
|
||||||
|
cerr << "Enter bin count: ";
|
||||||
inn >> in.bin_count;
|
inn >> in.bin_count;
|
||||||
size_t max_count;
|
size_t max_count;
|
||||||
in.max_count = 0;
|
in.max_count = 0;
|
||||||
@@ -46,6 +49,7 @@ input_data(istream& inn,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_histogram(in.numbers, in.bin_count);
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user