What guidelines do you guys follow for structuring and formatting your C++ code in general? Have you guys spent a lot of time looking at other people's code and attempting to mimic their style? What sources would you all recommend for finding other code out there on the web specifically for the purposes of finding organized, coherent, well-structured, well-formatted code examples, (so that you can follow their coding style and organization)?
For the purposes of this discussion, I am referring specifically to how you comment code, how you space your code out using whitespace, how you structure your whole source code so that your functions and your variables are very organized, etc. I guess all of this falls into the category of code organization and style best practices.
One source I found, Learn C++, has some good information about this topic. Do any of you have an opinion of the guidelines posted on that site that pertain to this topic? What other sites would you recommend?