I would like to know if it is possible to load code from a .h or .cpp file and execute it as part of my program.

Code:
void LoadCode()
{
    //Load the .h or .cpp file and get code from it here

    // Execute the code that was loaded here

    //Continue with normal program
}
Is that possible and does anyone know how to do it?