test promt arguments
Этот коммит содержится в:
9
main.cpp
9
main.cpp
@@ -2,6 +2,7 @@
|
|||||||
#include "histogram.h"
|
#include "histogram.h"
|
||||||
#include "svg.h"
|
#include "svg.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@@ -39,7 +40,13 @@ Input input_data(istream& sin, bool prompt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main(int argc, char* argv[]) {
|
||||||
|
if (argc > 1) {
|
||||||
|
for (int x = 0; x > argc; x++) {
|
||||||
|
cout << "argv[" << x << "] = " << argv[x];
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Input in = input_data(cin, false);
|
Input in = input_data(cin, false);
|
||||||
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