I see several things wrong with this code. Some of these things might not necessarily be errors, but since I'm not sure I'm going to add them anyway. It's usually helpful if you give us the exact errors too.
in main.h, you don't need semicolons after your includes.
in main.cpp, you don't need a semicolon after the end of a function.
in player.cpp, you don't need a semicolon after your function, and you don't need to return anything in a void function. Also, when writing class member functions, you need to put the name of the class before the name of the function, followed by two colons. So your player.cpp should look like this