How to create a cylinder in c++

Are you talking about static meshes or collision shapes? If the latter then no. There are only spheres, boxes and capsules collision shapes.