# If _ MSC_VER & gt; 1000 # pragma once # endif

Source: Internet
Author: User

# If _ MSC_VER> 1000
# Pragma once
# Endif
Explanation:
This is Microsoft's pre-compilation control.
When _ MSC_VER is relatively small, it supports something different from the new version.

_ MSC_VER:
MS: Microsoft (Microsoft) Abbreviation
C: MSC is Microsoft's C compiler.
VER: Short for Version.
Together, the C compiler version of Microsoft
# Pragma once
Indicates that this file is included only once by the compiler during compilation! It is generally used in. h to prevent files from being repeatedly included!
# If _ MSC_VER> 1000
This statement is compiled if the vc compiler version is later than 1000! Versions earlier than 1000 are not supported # pragma
Once the statement www.2cto.com
 
Many header files contain
# If _ MSC_VER> 1000
# Pragma once
# Endif // _ MSC_VER> 1000
_ MSC_VER defines the compiler version. VC ++ 6.0 is 1200.
# If _ MSC_VER> 1000 means that if the compiler version is higher than 1000 (VC ++ 5.0)


Author: lxh1230119

Related Article

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.