GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CppPrimer/CONTRIBUTING.md at master · AnddyWang/CppPrimer

Expand file tree

/

CONTRIBUTING.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
36 lines (31 loc) · 1.13 KB
/

CONTRIBUTING.md

Copy path

File metadata and controls

36 lines (31 loc) · 1.13 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Contributing to CppPrimer

Please ensure your pull request adheres to the following guidelines:

  1. No tabs, Use only spaces, and indent 4 space at a time.
  2. No using namespace std;
  3. 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
  1. 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

Tips for good commits and issues.

  1. Read up on Github Flavored Markdown
  2. Closing Issues via Commit Messages is encouraged.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.