How to add multiple static mesh to a actor for create stairs(or something) in C++

Hallo. I need some help to create procedural stairs inside a actor using static mesh and i want select static mesh in c++ code. Because i’m here i need help with a ideea about “How to add material to a actor inside c++”. Tnx for help and have a nice day.