How to create a skeleton with c++ at runtime?

How to create a skeleton with c++ at runtime?