How to use extra Header/.CPP file?

I want a void function in an extra healer/.cpp file and in the main program call it. can some one give me a small example code on how to do this?
You should probably read http://cplusplus.com/forum/articles/10627/ (or at least the beginning). There are many examples and tips there.
must be thick cuz everything on that article i try does not work xD it keeps asking me for #include "stdafx.h" and when i put it there is a error

it keeps asking me for #include "stdafx.h


This is a problem with your programming environment's setup (Visual Studio, I would guess) rather than your actual code.
Topic archived. No new replies allowed.