How do I automatically add actors to a level?

I’ve already done an actor and a button.I want to implement this, press this button, and automatically add the actor to the level.C++ programming only through the implementation, not through the blueprint.