Assignment 2 Clarification

Assignment 2 Clarification

par Dany Yaacoub,
Nombre de réponses : 6

Figure others may have a similar question so I'll post here.

When creating the module for the initialization of the simulation, should that include defining the parameters of the simulation? Or should those stay in main() in the antsontable.cpp file?

En réponse à Dany Yaacoub

Re: Assignment 2 Clarification

par Ramses van Zon,
The parameters of the simulation should not be defined in the initialization module, they should be input arguments for it.
En réponse à Ramses van Zon

Re: Assignment 2 Clarification

par Dany Yaacoub,
By input arguments do you mean arguments on the command line when running, or remaining where they originally are? I didn't see that in the assignment instructions, just want to be sure
En réponse à Dany Yaacoub

Re: Assignment 2 Clarification

par Ramses van Zon,
I had in mind function arguments. Adding command line arguments is not part of the assignment.
En réponse à Ramses van Zon

Re: Assignment 2 Clarification

par Dany Yaacoub,
Sorry if I'm misunderstanding, so a function that takes in the parameters as arguments and initializes everything? Should the values for length and num_timesteps and all those still be in the main() function, and then passed to the function that initializes everything? Apologies I'm just having trouble understanding exactly what is expected