Windows command line (Dos interface) (CMD window)

Source: Internet
Author: User

CD command:

D: Enter D drive
C: Enter C drive
CD MYC--can be entered into the directory named MYC (the folder must exist in the C disk)
CD: Can go back to the previous level directory
Cd\ return to the root directory
CD D:\MYC Enter the name of the D-Disk for the MYC directory
CD/? View the specific usage of the CD command.

Above from Link: https://www.jianshu.com/p/ff6f2a2bf75a

The Windows command line runs the. cpp file:

1. Start and run->cmd;

2. Go to the disk where you saved the. C or. cpp file, for example I was in the F drive, directly input "F:", enter;

3. Enter the folder where the. C or. cpp files are located, "CD folder location", for example: "CD \dataanalyze\c";

4. Generate the executable file, enter the command: "g++ **.cpp";

5. Execute the command, type: "**.exe".

Why am I named test.c,,, compiled and why it becomes a.exe ... Rather than test.exe?

A: You want to specify the generated executable file name-o test or-o test.exe not specified by the-o command, will default to generate A.exe, Linux is the default build a.out

Windows command line (Dos interface) (CMD window)

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.