C++ files

Hiw i can add a c++ file and alter propierties of an object as its position or other.

I want to use a code that i create to create a world