|  |  | @ -13,6 +13,7 @@ struct Input { | 
			
		
	
		
		
			
				
					
					|  |  |  |     size_t bin_count{}; |  |  |  |     size_t bin_count{}; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | }; |  |  |  | }; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | Input |  |  |  | Input | 
			
		
	
		
		
			
				
					
					|  |  |  | input_data(istream& inx){ |  |  |  | input_data(istream& inx){ | 
			
		
	
		
		
			
				
					
					|  |  |  |     bool prompt= true; |  |  |  |     bool prompt= true; | 
			
		
	
	
		
		
			
				
					|  |  | @ -33,14 +34,16 @@ input_data(istream& inx){ | 
			
		
	
		
		
			
				
					
					|  |  |  | int |  |  |  | int | 
			
		
	
		
		
			
				
					
					|  |  |  | main(int argc, char* argv[]) { |  |  |  | main(int argc, char* argv[]) { | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (argc>1){ |  |  |  |     if (argc>1){ | 
			
		
	
		
		
			
				
					
					|  |  |  |     for (size_t i=0;i<argc;i++){ |  |  |  |     CURL *curl = curl_easy_init(); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         cout<<"argv["<<i<<"]= "<<argv[i]<<endl; |  |  |  |     if(curl) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |         CURLcode res; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     return 0; |  |  |  |         curl_easy_setopt(curl, CURLOPT_URL, argv[1]); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |         res = curl_easy_perform(curl); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     else{ |  |  |  |         curl_easy_cleanup(curl); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | }; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  |     curl_global_init(CURL_GLOBAL_ALL); |  |  |  |     curl_global_init(CURL_GLOBAL_ALL); | 
			
		
	
		
		
			
				
					
					|  |  |  |     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_svg(bins); |  |  |  |     show_histogram_svg(bins); | 
			
		
	
		
		
			
				
					
					|  |  |  | }} |  |  |  | } | 
			
				
				
			
		
	
		
		
	
	
		
		
			
				
					|  |  | 
 |