The first CPP and C program (VIM) of the vegetable dish

Source: Internet
Author: User

1: Enter the vim file name. cpp

2: Edit, edit operation reference----> First knowledge vim main three steps: 1) Enter the letter I, into the insert writing mode, after writing, press ESC to exit the writing mode, press: Wq, save and exit, sometimes need to WQ after add! No.

3: Enter the g++ file name. cpp-o file name, error just look at where the error is, and then enter the Vim file name. cpp, or press ^ This key, if you want to see the code directly, enter the-->cat file name. cpp

4: Enter./file name to run without error

Gedit file name. C

GCC file name. C

./a.out

The first CPP and C program (VIM) of the vegetable dish

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.