Hey,

What if I wanted a constructor that would take arguments to define its internals, but sometimes I didn't want to define the internals such as in a header.

ex:
Code:
struct Vector3{
  Vector3(float x, float y, float z);
  float X, Y, Z;
};
Now that works as I had hoped to set all the varables in one statement, but in a class declaration I really don't want to set the variables until its constructor definition.

I was told a long time ago to only declare in a .h and only define in .cpp so when doing something like.

Code:
class Camera{
  private:
    Vector3 Location;  // trying to not define here but my above example requires it
  public:
    Camera(Vector3 location); // or here
};
I know I'm missing something simple. Thanks for your time!