динамическая библиотека
Этот коммит содержится в:
18
main.cpp
18
main.cpp
@@ -1,6 +1,6 @@
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include "histogram.h"
|
||||
#include "histogram.h1.h"
|
||||
#include "svg.h"
|
||||
#include <curl/curl.h>
|
||||
|
||||
@@ -36,13 +36,13 @@ Input input_data(istream& in, bool prompt=false) {
|
||||
|
||||
|
||||
int main(){
|
||||
if (curl_global_init(CURL_GLOBAL_ALL)!=0){
|
||||
cerr << "failed cURL" << endl;
|
||||
return 1;
|
||||
};
|
||||
auto in = input_data(cin);
|
||||
auto bins = make_histogram(in.numbers, in.bin_count);
|
||||
show_histogram_svg(bins);
|
||||
curl_global_cleanup();
|
||||
if (curl_global_init(CURL_GLOBAL_ALL)!=0){
|
||||
cerr << "failed cURL" << endl;
|
||||
return 1;
|
||||
};
|
||||
auto in = input_data(cin);
|
||||
auto bins = make_histogram(in.numbers, in.bin_count);
|
||||
show_histogram_svg(bins);
|
||||
curl_global_cleanup();
|
||||
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user