In C++, when is it better to use a class with a state and an “execute” method, vs just a function?
My question is about code design in general, but consider the specific context of a numerical integration tool.
can anyone tell me how can I create multiple objects using vector without specifying the length of vector
I tried to do it using the vector<string>
and iterating through it to create the object but while assigning them value i am getting error
can anyone tell me how can I create multiple objects in cpp using vector without specifying the length of vector
I tried to do it using the vector<string> and iterating through it to create the object but while assigning them value i am getting error
Access parent class object formed by calling child class
On creating an object of child class, the constructor of the child class is called which first initiates the call for the parent class’s constructor. Since the constructor of the parent class is called so there must be an object of parent class corresponding to that child class object. How to access that parent class object.
Are Template Classes cane cause a security issue in Windows?
This is my code :