简体   繁体   English

为什么Windows命令提示符说“更多? “当我运行一个带有d ^参数的程序时?

[英]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.

相关问题 为什么从Windows启动但不在命令提示符下运行程序? - Why would a program run when launch from windows but not the command prompt? 为什么项目在NetBeans内部终端中比在Windows命令提示符下“运行”更快? - Why does a project “run” faster in NetBeans internal terminal than in windows command prompt? 为什么当在多个文件中通过命令提示符运行该C ++程序时会崩溃,而在单个文件上运行时却不会崩溃? - Why this C++ program crashes specifically when run through command prompt on multiple files but not when run on individual files? 重定向标准输出时,为什么我的程序运行得更快? - Why does my program run faster when I redirect stdout? 当我选择使用应用程序打开文件时,Windows传递给命令行参数的字符串的外观如何? - How does the string that windows passes into command line argument when I choose to open a file with my application look? 在命令提示符下运行 C++ - Windows - Run C++ in command prompt - Windows 为什么我的代码应该说“否”时却说“是”? - Why does my code say “Yes” when it should say “No”? 当我在 main 中声明了我的二维数组时,为什么我的程序会退出? - Why do does my program exit when I have my 2d array declared in main? 为什么当我启用分析时我的程序运行得更快? - Why does my program run way faster when I enable profiling? 当我使用共享库编译并运行该程序时,为什么tcmalloc失败? - Why does tcmalloc fail when I compile and run this program with a shared library?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM