Hello in my class Bullet
I declare active as false when the bullet
isn't active and true when it is. In my other class
that isn't connected to my Bullet class
in any way I want to use the bool
member active
and change it, how can I do that?
Im getting the error
Error 18 error LNK2001: unresolved external symbol "public: static bool Bullet::active" (?active@Bullet@@2_NA) C:\Skolarbete\Programmering i C++\ProjectTemplate\ProjectTemplate\Alienrow.obj ProjectTemplate
Declaration: static bool active;
When I use it: Bullet::active = false;
Im quite new too C++
so don't hate! Appreciate all the help I can get :D