2. Windows C + + programming conventions

Source: Internet
Author: User

The format and style of programming, as far as possible in the international direction, Microsoft is a very good example. The following link is the official Microsoft agreed format, in writing C, C + + code, it is worth reference.

https://msdn.microsoft.com/zh-cn/library/windows/desktop/ff381404 (v=vs.85). aspx

In addition, the following points are mentioned:

1, for 32-bit systems, 64-bit systems, typedef variable type is constant, such as a DWORD is always 32 bits wide;

2, bool type, the contract is 0, true is 1, these types are defined, are in the WinDef.h header file, and bool type and C + + bool type is different;

3, the article mentions that many variables are prefixed with the Hungarian symbol.

2. Windows C + + programming conventions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.