Yes you should always have your #define one line down from the #include statements. As well, any time you use << or >> (input/output operator) you should always have a space before and after.
ex:
Math operations and assignment are the same thing.Code:cout << "Hello World!" << std::endl;
Code:int a = 0;You can actually read about it here: http://www.possibility.com/Cpp/CppCodingStandard.htmlCode:num1 = mu2 + num3;
Don't forget how ever that you can have your own stile, but for the most part you keep it standard. Plus it's easier for you to read too! A lot of people use their own way of commenting.
Bookmarks