-->
当前位置:首页 > 题库

PROGRAMMING:Xiaopang introduction series 4

Luz5年前 (2021-05-10)题库444
Today, Xiao Pang will show you the style of a senior ~ ~ ~. In the start menu (press the win key), there is a run button. Click on the pop-up information box and enter CMD to open the DOS operation interface (or open it through start, all programs, accessories and command prompt). Many things can be done in this interface, such as one command is dir, The function is to get the information of all files in the specified directory.
For example, the information of all files in down can be obtained by dir D:: down.
Is it simple? But what if it's looking for D:: C code?
Is it going to go wrong?
This is because there are spaces in the path, so it will report an error, how to prevent it?
At this time, we need a thing, that is, double quotation marks. As long as we add "" to the path, we will not report an error
for example
dir "D:\C Code"
Now Xiao Pang wants to ask, if Xiao Pang wants to know the contents of the test folder in C code, what should he do?
###Input format:
nothing
###Output format:
Output "dir" D: \ "C code \" test \ "
###Input example:
Here is a set of inputs. For example:
```in
```
###Output example:
The corresponding output is given here. For example:
```out
dir "D:\C Code\test"
```
Xiao Pang's popular science (4)
There is a difference between windows system and Linux system. Windows system is not sensitive to case, so you can succeed even if you use dir "D:: C code". But in Linux, if your file is C code, you will find something wrong with C code.
Xiaopang science popularization (5)
There are many parameters of dir, you can learn by yourself< br>





answer:If there is no answer, please comment