How to create a cube manually from c++ code?

Glad I could help! Please accept the answers so the question is marked as resolved.