Original Post
I have a struct like this: struct CVector3 { public: float x, y, z; }; And I have a lot of places in the program were I initialize like this: CVector3 vector = {0,0,0}; But when I make a constructor like this: struct CVector3 { public: float x, y, z; CVector3(float a, float b, float c){x=a; y=b; z=c;} }; It says that I cant initialize the same way that I did before and I have to use the constructor. Is any way to use both of the ways? Thanks.