|
|
|
|
@ -20,7 +20,7 @@ Input input_data(istream& in, bool prompt=false) {
|
|
|
|
|
}
|
|
|
|
|
in >> number_count;
|
|
|
|
|
|
|
|
|
|
Input result; // Îáúÿâëÿåì ïåðåìåííóþ òèïà Input, êîòîðóþ áóäåì âîçâðàùàòü
|
|
|
|
|
Input result; // Îáúÿâëÿåì ïåðåìåííóþ òèïà Input, êîòîðóþ áóäåì âîçâðàùàòü
|
|
|
|
|
result.numbers.resize(number_count);
|
|
|
|
|
|
|
|
|
|
for (size_t i = 0; i < number_count; ++i) {
|
|
|
|
|
@ -30,12 +30,19 @@ Input input_data(istream& in, bool prompt=false) {
|
|
|
|
|
cerr << "Enter bin count: ";
|
|
|
|
|
}
|
|
|
|
|
in >> result.bin_count;
|
|
|
|
|
return result; // Âîçâðàùàåì çàïîëíåííóþ ñòðóêòóðó Input
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main(){
|
|
|
|
|
int main(int argc, char* argv[]){
|
|
|
|
|
if (argc > 1){
|
|
|
|
|
cout << "argc= " << argc << endl;
|
|
|
|
|
for (int i = 0; i < argc; i++){
|
|
|
|
|
cout << "argv[" << i << "] = " << argv[i] << endl;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
if (curl_global_init(CURL_GLOBAL_ALL)!=0){
|
|
|
|
|
cerr << "failed cURL" << endl;
|
|
|
|
|
return 1;
|
|
|
|
|
|