How to use notepad configuration to run the C voice environment, notepad voice

Source: Internet
Author: User

How to use notepad configuration to run the C voice environment, notepad voice

To run the C language, we can use Notepad How can I use notepad to configure and run the C language development environment?

  Notepad ++ It is a good editor that can be used to develop many tools. For details, see the following.

 

First open the Notepad ++ software and enter the main interface.

 

 

Open "run" in the menu bar, click "run", or press F5. The Settings dialog box is displayed.

 

 

In the displayed Setting dialog box, enter the correct information: Cmd/k gcc-o "D: \ study \ examples (name_part0000.exe" "$ (FULL_CURRENT_PATH)" & PAUSE & EXIT 

Then the name is compile c, and the shortcut key is set by yourself. Similarly, the second one: cmd/k "D: \ study \ $ (NAME_PART)" & PAUSE & EXIT is named run c, and the shortcut key is set by yourself. Close the dialog box after setting.

 

 

Then test the program in the software to check whether it passes. The specific program is:

  # Include

Int main (void)

{

Int i1 = 1, i2 = 2;

Int sum = i1 + i2;

Printf ("% d \ n", sum );

Return 0;

}

 

 

Click compile c and run c, and the test passes. Congratulations! You can use this compiler for programming.




  Note:

D: \ study is the output position of the program. You need to set it yourself.


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.