Can a struct have a constructor in C++?
struct
I have been trying to solve this problem but I am not getting the syntax.
struct HaveSome { int fun; HaveSome() { fun = 69; } };
I'd rather initialize inside the constructor so I don't need to keep the order.