Please ensure your pull request adheres to the following guidelines:
- No tabs, Use only spaces, and indent 4 space at a time.
- No
using namespace std; - Put spaces after each semicolon, around operators.
for(auto i=0;i!=size;++i) // Bad for (auto i = 0; i != size; ++i) // Good auto epsilon=2*gamma-delta*pi; // Bad auto epsilon = 2 * gamma - delta * pi; // Good
- Put braces to next line in function(such as
main()), otherwise, End of line.
int main() { Sales_item total; if (std::cin >> total) { Sales_item trans; while (std::cin >> trans) { //... } } }
If you intall ClangFormat, You wouldn't care about the format, just run the command:
clang-format -i your-code.cpp
- Read up on Github Flavored Markdown
- Closing Issues via Commit Messages is encouraged.