Cellular Automata CHEM274B Group Project
Contributor(s): Chongye Feng, Emmanuel Cortes, Trevor Oldham
|
This application runs our galaxy model. The application validates the user input so the application can appropriately. More...
Functions | |
void | input_failure () |
Clear input buffer if input given is invalid. | |
int | get_numeric_value (std::string message, int min, int max) |
Get a valid int from user in the given range. More... | |
double | get_numeric_value (std::string message, double min, double max) |
Get a valid double from user in the given range. More... | |
int | main () |
Gets user input and runs the simulation. More... | |
This application runs our galaxy model. The application validates the user input so the application can appropriately.
Contributor(s)
double get_numeric_value | ( | std::string | message, |
double | min, | ||
double | max | ||
) |
Get a valid double from user in the given range.
message | prompt message |
min | minimum value that the user can specify (exclusive) |
max | maximum value that the user can specify (exclusive, optional if -1) |
int get_numeric_value | ( | std::string | message, |
int | min, | ||
int | max | ||
) |
Get a valid int from user in the given range.
message | prompt message |
min | minimum value that the user can specify (inclusive) |
max | maximum value that the user can specify (exclusive, optional if -1) |
int main | ( | ) |
Gets user input and runs the simulation.