What do you do with the macro in c++:vs2008?

Source: Internet
Author: User

There are macros in VS2008, which can also be edited and set up.

Benefits:

1. Quickly generate code to help develop.

2. Individual customization function, the IDE is more suitable for its own use.

3. Improve programming efficiency.


Disadvantages:

The use of VB development, the first use up trouble. However, there are official reference documents, copy and paste implementation.


Example:

Auto-fill class build code

Attention:

Macros in the IDE are intended to facilitate the use of tools, and the macros in the code are defined.


Extended reading:

Macros in code are usually used:

1. Control the compilation switch. #ifdeine #endif

2. Macro definition, used for some constants of code, such as pai. #define PAI = 3.14


What do you do with the macro in c++:vs2008?

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.