Is there a Microsoft C++ Style guide?

St0rmbringerA616 1 Reputation point
2021-01-18T15:53:42.617+00:00

I saw one pop up immediately for C# but I am trying to take up C++. I don't know if Microsoft has a public one published.

Developer technologies C++
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Sandeep Sequeira 6 Reputation points
    2022-08-15T11:44:31.253+00:00

    C++ Coding Standards “Coding standards” here doesn't mean “how many spaces should I indent my code?” This book contains 101 best practices, idioms, and common pitfalls that can help you to write correct, understandable, and efficient C++ code.

    In general, irrespective of the programming language, these are key 5 SOLID principles that will help write clean, reusable, error free code.

    1. Single Responsibility
    2. Open for Extension, Closed for Modification
    3. Liskov Substitution
    4. Interface Segregation
    5. Dependency Inversion

    All these principles are explain here

    1 person found this answer helpful.
    0 comments No comments

  2. Castorix31 90,521 Reputation points
    2021-01-18T17:25:46.073+00:00

    There is Coding Style Conventions for C++/Win32

    0 comments No comments

  3. Petrus 【KIM】 546 Reputation points
    2021-01-26T02:12:53.223+00:00

    Use This...
    Long time ago, Microsoft published...

    The Microsoft All-In-One Code Framework is a free, centralized code sample library driven by developers' needs. Our goal is to provide typical code samples for all Microsoft development technologies, and reduce developers' efforts in solving typical programming tasks.

    https://github.com/notfarfromorion/All-In-One-Code-Framework/blob/master/All-In-One%20Code%20Framework%20Coding%20Standards.docx

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.