notepad++ how to compile c/c++__c++

Source: Internet
Author: User

1, download MinGW, store it in C disk (this can be selected).
2, right click on the desktop "Computer" – Properties – Advanced system settings – Environment variables, find the path option, double-click to open, write at its end; C:\MinGW\bin ", note the semicolon to separate it from the previous option (this is the Win7 system), if it is Win10 see the following figure:


And then you can make sure.
3, open cmd, input g++-V (note that there is a space).
For WIN10 users, if these things happen, the modification succeeds:

For Win7 users, if these things happen, the modification succeeds:

4, open notepad++, press F5 Open as the diagram interface:

5, input

Cmd/k chdir/d $ (current_directory) & C + + $ (name_part). Cpp-o $ (Name_part) &$ (name_part). exe

Click Save, name casually fill (suggest fill in runc++), and then determine a shortcut key (of course, you can not be sure, the time can be from the menu bar "Run" found), click OK, and then turn off the window.
6, casually write a program, press just set the shortcut key, is not able to run the.

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.