When I create an empty Win32 application in VC++, I see 3 folder icons to my left (in the environment):

Header files
Resource files
Source files

I create main.cpp in the "source files" and a header file (say) temp.h in the "header files" folder. Till now I have been writing the functions code right in temp.h
Say if I want to create a file temp.cpp which contains the functions code. Where should I put it into?

Resource files?

Please also give organizing tips that you may know. I would be grateful if you could point me to the appropriate links also.