UML C++ Instant Generator Help

Hello everyone,

I used C++ Instant generator on the class diagram i made and wrote the code in the functions that were created and all.

My problem is that i have never written code as a .h file and a .cpp file so now i dont know where the main function goes in . and how to compile the project .

can someone please explain me or give me link where i can read more about it.

Thanking you in advance,
Michael.