I am trying to add an autoshooter to this game i was building from scratch but it seems unclear this concept to me. (It is based on mike geig shooter)
I have already opened a thread about the autoshooter, but i don't get the logic and how do i apply to codes like the game i am trying to build?
Also, pls add comments in each line you have added and explain step by step.
Anyone pls help! 
Here is all the game's code so far:
source.cpp
objects.h
Well most of your code worked, I just don't understand why you decided to handle your shooting so different in comparison to the movement of the ship.
So you mean this is the code block which makes the autoshooting?
And than i can apply int firecooldown to all games i will create?
Also, i didnt understand why did you put firecooldown = 10. What is the logic?
It decrements 10 loops and than shoots a bullet?
That code fires every 10 ticks. You can increase it to lower the rate of fire, or decrease it to make it fire faster.
Just did that 
It works perfect, i don't get one last thing.
The same block of code is used to make the autoshooting?
Yes, every time you fire a bullet the counter will get increased. As long as this counter is not zero the next bullet won't be fired.
Every frame(timer event) this counter gets decreased so it can become 0 again.
Ok, thank you very much!