c++windowscmdcommand-prompt

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.


Solution

  • 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.