code: изменён код программы
Этот коммит содержится в:
8
main.cpp
8
main.cpp
@@ -2,6 +2,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "histogram.h"
|
#include "histogram.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
struct Input {
|
struct Input {
|
||||||
@@ -21,7 +22,12 @@ in >> cin.bin_count;
|
|||||||
return cin;
|
return cin;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(){
|
int main(int argc, char* argv[]){
|
||||||
|
// curl_global_init(CURL_GLOBAL_ALL);
|
||||||
|
if(argc>1){
|
||||||
|
cout<<argc<<argv;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
auto in = input_data(cin);
|
auto in = input_data(cin);
|
||||||
auto bins = make_histogram(in.numbers, in.bin_count);
|
auto bins = make_histogram(in.numbers, in.bin_count);
|
||||||
show_histogram(bins, in.bin_count);
|
show_histogram(bins, in.bin_count);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user