test promt arguments
Этот коммит содержится в:
@@ -4,6 +4,8 @@
|
|||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "svg.h"
|
#include "svg.h"
|
||||||
|
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@@ -24,7 +26,13 @@ Input input_data(istream& stream) {
|
|||||||
return in;
|
return in;
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
Input in = input_data(cin);
|
||||||
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