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)