Добавление аргументов
Этот коммит содержится в:
8
main.cpp
8
main.cpp
@@ -3,7 +3,7 @@
|
|||||||
#include "histogram.h"
|
#include "histogram.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "svg.h"
|
#include "svg.h"
|
||||||
#include "curl/include/curl/curl.h"
|
#include <curl/curl.h>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
struct Input {
|
struct Input {
|
||||||
@@ -33,8 +33,12 @@ Input input_data(istream& in, bool prompt) {
|
|||||||
return inp;
|
return inp;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main(int argc, char* argv[]) {
|
||||||
curl_global_init(CURL_GLOBAL_ALL);
|
curl_global_init(CURL_GLOBAL_ALL);
|
||||||
|
if (argc > 1){
|
||||||
|
cerr << "argv[0] = " << argv[0] << "argc = " << argc;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
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);
|
||||||
show_histogram_svg(bins);
|
show_histogram_svg(bins);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user