I have drawn the aliens ,ship and bullet . The ship is moving is moving left and right . The bullet is moving up for shooting the aliens.
I want to know how to make a new bullet appear after one is gone.
How to move the bullet along with the ship.
Also i didn't provide any kind of animation for the aliens .How to do it.
I didn't use any opengl purely sdl and c++.
If i use any opengl is there any benefit for me or I can go with sdl itself?
Just spawn the bullet at the ship's coordinates (depending on where from the ship you're shooting, you'll need to work that out).
Set the bullets y velocity to a value to that it travels upwards at each draw of the sprite and when its y position exceeds the screen height then redraw the bullet at the ship's location.
The file cBullet.h would probably be helpful. If I can see what methods the bullet has, I can probably give more of an indication as to how you'd set its position.
Set the bullet position using SetX and SetY to the ship position (plus an offset that you'll have to figure out so the bullet doesn't spawn at the centre or top left of the ship, depending on how the coordinates are set up), which would be retrieved using GetX and GetY of the ship.