lib: подключена библиотека curl
Этот коммит содержится в:
1
.gitignore
поставляемый
1
.gitignore
поставляемый
@@ -1,4 +1,5 @@
|
|||||||
bin/
|
bin/
|
||||||
obj/
|
obj/
|
||||||
|
curl/
|
||||||
Lab1.depend
|
Lab1.depend
|
||||||
unittest.depend
|
unittest.depend
|
||||||
|
|||||||
13
Lab1.cbp
13
Lab1.cbp
@@ -30,8 +30,18 @@
|
|||||||
</Build>
|
</Build>
|
||||||
<Compiler>
|
<Compiler>
|
||||||
<Add option="-Wall" />
|
<Add option="-Wall" />
|
||||||
<Add option="-fexceptions" />
|
<Add option="-fexceptions -lcurl" />
|
||||||
|
<Add option="-DCURL_STATICLIB" />
|
||||||
|
<Add option='-DCURL_STATICLIB "curl-config --cflags --static-libs"' />
|
||||||
|
<Add option="-DCURL_STATICLIB `curl-config --cflags --static-libs`" />
|
||||||
|
<Add directory="C:/Users/Gamer/GameMaker 8.1/Desktop/учебный кал/lab03/Lab1/curlic/include" />
|
||||||
</Compiler>
|
</Compiler>
|
||||||
|
<Linker>
|
||||||
|
<Add option="-static-libstdc++" />
|
||||||
|
<Add option="-static-libgcc" />
|
||||||
|
<Add option="-static" />
|
||||||
|
<Add directory="C:/Users/Gamer/GameMaker 8.1/Desktop/учебный кал/lab03/Lab1/curlic/lib" />
|
||||||
|
</Linker>
|
||||||
<Unit filename=".gitignore" />
|
<Unit filename=".gitignore" />
|
||||||
<Unit filename="histogram.cpp" />
|
<Unit filename="histogram.cpp" />
|
||||||
<Unit filename="histogram.h" />
|
<Unit filename="histogram.h" />
|
||||||
@@ -40,6 +50,7 @@
|
|||||||
<Unit filename="main.h" />
|
<Unit filename="main.h" />
|
||||||
<Unit filename="svg.cpp" />
|
<Unit filename="svg.cpp" />
|
||||||
<Unit filename="svg.h" />
|
<Unit filename="svg.h" />
|
||||||
|
<Unit filename="svg_internal.h" />
|
||||||
<Unit filename="text.cpp" />
|
<Unit filename="text.cpp" />
|
||||||
<Unit filename="text.h" />
|
<Unit filename="text.h" />
|
||||||
<Extensions />
|
<Extensions />
|
||||||
|
|||||||
2
main.cpp
2
main.cpp
@@ -4,6 +4,7 @@
|
|||||||
#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;
|
||||||
|
|
||||||
@@ -47,6 +48,7 @@ input_data(istream& in_stream,bool prompt) {
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
auto in = input_data(cin,true);
|
auto in = input_data(cin,true);
|
||||||
vector<size_t> bins = make_histogram(in.numbers, in.bin_count);
|
vector<size_t> bins = make_histogram(in.numbers, in.bin_count);
|
||||||
//show_histogram_text(bins, in.bin_count);
|
//show_histogram_text(bins, in.bin_count);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user