code: изменён код программы
Этот коммит содержится в:
8
main.cpp
8
main.cpp
@@ -2,6 +2,7 @@
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
#include "histogram.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
struct Input {
|
||||
@@ -21,7 +22,12 @@ in >> cin.bin_count;
|
||||
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 bins = make_histogram(in.numbers, in.bin_count);
|
||||
show_histogram(bins, in.bin_count);
|
||||
|
||||
Ссылка в новой задаче
Block a user