File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 31
31
int main (int argc, char *argv[]) {
32
32
int num_of_simulations_per_rate = std::stoi (argv[1 ]);
33
33
int sick_grade = std::stoi (argv[2 ]);
34
+ int num_of_vacc_rates = argc - 3 ;
34
35
35
- std::cout << argv[0 ] << std::endl;
36
- std::cout << argv[1 ] << std::endl;
37
- std::cout << argv[2 ] << std::endl;
38
- std::cout << argv[3 ] << std::endl;
39
-
40
- int num_of_vacc_rates = argc - 1 ;
36
+ std::cout << " Num of sims: " << num_of_simulations_per_rate << std::endl;
37
+ std::cout << " Sick Grade: " << sick_grade << std::endl;
38
+ std::cout << " Num of vacc rates:" << num_of_vacc_rates << std::endl;
41
39
42
40
std::vector<double > vacc_rates (num_of_vacc_rates);
43
41
44
42
// Add all vaccination rates to the vector
45
43
int vacc_rate_arg_count;
46
44
for (vacc_rate_arg_count = 0 ; vacc_rate_arg_count < num_of_vacc_rates; vacc_rate_arg_count++)
47
- vacc_rates[vacc_rate_arg_count] = std::stod (argv[2 + vacc_rate_arg_count]);
45
+ vacc_rates[vacc_rate_arg_count] = std::stod (argv[3 + vacc_rate_arg_count]);
48
46
49
47
// Every vaccination rate has some number of simulations.
50
48
// Here, we iterate over all of the different vaccination
You can’t perform that action at this time.
0 commit comments