notepad++ with MinGW configuration compile and run C + +

Source: Internet
Author: User

1. notepad++ and Dev-cpp can compile and run, environment variable settings:
    • Add "bin under Dev-cpp MinGW64" in Path, which is the path to find the GCC compiler.
    • Create a new Library_path variable and add "lib under Dev-cpp MinGW64" in its value. This is the path to the standard inventory drop.
    • Create a new C_include_path variable and include "include Under Dev-cpp MinGW64" in its value. This is the path to the include lookup header file.
After the setup is complete, under the CMD console window, enter Gcc-v. If it has been successfully installed, the version information of GCC will be displayed. 2. notepad++ Press the shortcut key F6: Compile: cmd/k g++-O $ (current_directory) \$ (name_part). exe "$ (full_current_path)" &pause & Exit Run: cmd/k "$ (current_directory) \$ (Name_part)" & EXIT can be selected notepad++ $ (nppexec) under plugins follow in Current_directory, Here you can omit the note: here is the C + + version, c changes the g++ to GCC. Report:C + + pointer constant notationSay a well-remembered way to differentiate int const *P with int* const p, to read * as pointer to and then read from backwards.
The first int const *P can be read as p is a pointer to const INT,P are pointers to constants
The second int* const p can be read as a const pointer to int,p of p is a constant pointer to the INT type

notepad++ with MinGW configuration compile and run C + +

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.