A simple approach would be to place your sprites in a vector, and loop over it when you draw:
std::vector<sf::Sprite> sprites;
//insert sprites here
for (const auto& sprite : sprites)
{
window.draw(sprite);
}
However if you're getting more serious about your code design I highly recommend reading SFML Game Development (https://www.packtpub.com/product/sfml-game-development/9781849696845)and Game Programming Patterns (https://gameprogrammingpatterns.com/contents.html) - both of which I found invaluable when I was learning SFML.