Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. The Windows command prompt then showed "More? ", and I couldn't figure out why, since I didn't script this. I realized it was coming up since I wrote d^, but why does it do this? What does "More? " do?

Note: Compiled in Visual Studio Express for Windows Desktop, if you need to know.

like image 864
Flare Cat Avatar asked Nov 16 '25 07:11

Flare Cat


1 Answers

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.

like image 139
Stephan Avatar answered Nov 17 '25 20:11

Stephan