I am struggling with the constructor of one of my classes to make it a member that is not initialized properly.
I have a Settings class that processes the parameter that I use for modeling and a Simulations class that performs the modeling steps.
I do not understand why this code does not work as expected:
class Settings{ public: int n ;
I think there is a problem in the way I use the constructor, but I cannot understand why.
By the way, the definition of v inside curly braces works fine, I'm just curious to know why by defining it, the correct way does not work properly!
Thank you for help!
source share