Добавлена библиотека curl и решены проблемы при запуске программы

master
IvanovArtAl 4 недель назад
Родитель 1a88edb86a
Сommit 51d3f02a85

2
.gitignore поставляемый

@ -3,5 +3,5 @@ bin/
obj/
*.cbp
*.layout
*.depend
*.user
*.depend

@ -13,6 +13,7 @@
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
<Add directory="curl/include" />
</Compiler>
</Target>
<Target title="Release">
@ -31,7 +32,12 @@
<Compiler>
<Add option="-Wall" />
<Add option="-fexceptions" />
<Add directory="curl/include" />
</Compiler>
<Linker>
<Add library="libcurl.dll.a" />
<Add directory="curl/lib" />
</Linker>
<Unit filename="histogram.cpp" />
<Unit filename="histogram.h" />
<Unit filename="histogram_internal.h" />

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

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