I just want your opinion on some good programming habits. I have written two incomplete programming - about 5 pages each, and after some days, when I try to edit then again, it just looks really messy and I am confused with all those files and stuff.

I just want to that how do I organize my project so that it does not look so messy(EG: Putting the function, putting what kind of stuff in the header files, doing what kind of commenting).