[英]Why does the Windows command prompt say “More? ” when I run a program with an argument of d^?
I was making a C++ calculator program that removes unrecognized text from the argument array, and I just so happened to enter d^ when I was running the program. 我正在制作一个C ++计算器程序,它从参数数组中删除无法识别的文本,而我正好在运行程序时输入d ^。 The Windows command prompt then showed "More? ", and I couldn't figure out why, since I didn't script this.
然后Windows命令提示符显示“更多?”,我无法找出原因,因为我没有编写脚本。 I realized it was coming up since I wrote d^, but why does it do this?
我意识到自从我写了d ^之后就会出现,但为什么会这样呢? What does "More? " do?
“更多?”有什么作用?
Note: Compiled in Visual Studio Express for Windows Desktop, if you need to know. 注意:如果您需要了解,请在Visual Studio Express for Windows Desktop中编译。
More?
"does" nothing. “什么也没做。 It asks you to continue your command.
它要求你继续你的命令。
^
is an "escape character" that tells the Interpreter to treat the following character different. ^
是一个“转义字符”,告诉解释器将以下字符区别对待。 The following character is a Line End ("Enter") - ^
tells the Interpreter not to handle it as end of line ("Enter"), so it asks you to continue. 以下字符是行结束(“Enter”) -
^
告诉解释器不要将其作为行尾(“Enter”)处理,因此它会要求您继续。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.