I'm getting incorrect values stored into my Vector3D. In the program it asks for the original value and I'm getting a long -4.3423432523....... number even though I have in my default constructor the values set to zero. Can anyone tell me what the problem is?
...is not a constructor. This is a function called Vector3d that returns an anonymous Vector3D object, and takes 3 float arguments. This is a constructor:
As was said it si a function not a constructor. And it is only declaration of the function that has default arguments. There is no its definition. So maybe it sets something to zero but I do not know.:)