Teach you how to write code and debug on a Mac with a terminal

Source: Internet
Author: User

1.ls

2. CD desktop/

3. Touch A.C

4. Open A.C

5. CC A.C

6../a.out


Dictate, roughly the first thing you have to do is open the Mac terminal and then:

1. Show all subdirectories below the current directory

2. Go to the desktop

3. Create a A.C file

4. Open the A.C file (and then you write your own code in the. c file that you need to run, and then save the file to close it)

5. Compiling the A.C file

6. Print the compiled generated a.out file. You'll see the terminal show results.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Teach you how to write code and debug on a Mac with a terminal

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.