code: подключенна библиотека curl
Этот коммит содержится в:
1
.gitignore
поставляемый
1
.gitignore
поставляемый
@@ -12,3 +12,4 @@
|
||||
/cs-lab34
|
||||
/start
|
||||
/main.o
|
||||
/curl
|
||||
|
||||
@@ -31,7 +31,12 @@
|
||||
<Compiler>
|
||||
<Add option="-Wall" />
|
||||
<Add option="-fexceptions" />
|
||||
<Add directory="/home/sage/Documents/lab/cs-lab03/curl/include/" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add library="libcurl.dll.a" />
|
||||
<Add directory="/home/sage/Documents/lab/cs-lab03/curl/lib/libcurl.dll.a/" />
|
||||
</Linker>
|
||||
<Unit filename=".gitignore" />
|
||||
<Unit filename="histogram.cpp" />
|
||||
<Unit filename="histogram.h" />
|
||||
|
||||
2
main.cpp
2
main.cpp
@@ -53,7 +53,7 @@ input_data(istream& in, bool prompt) {
|
||||
|
||||
|
||||
int main() {
|
||||
//curl_global_init(CURL_GLOBAL_ALL);
|
||||
curl_global_init(CURL_GLOBAL_ALL);
|
||||
auto in = input_data(cin, true); //input data
|
||||
auto bins = make_histogram(in.numbers, in.bin_count); //calculating bin size for the histogram
|
||||
show_histogram_svg(bins, in.interval_task); //histogram output in the format svg code
|
||||
|
||||
Ссылка в новой задаче
Block a user