"More?" in C++ when taking in console input

Viewed 59

I was programming in C++ when I noticed some... odd behavior when taking in console input. Let me explain.

#include <iostream>

int main(int argc, char *argv[]) {
    if (argc == 1) {
        std::cout << "Hello!\n";
    }

    if (argc >= 2) {
    }
}

Pretty simple program, right? Now, when I type in "programName ^" I get a cryptic message, saying "More?" on the console window. On pressing enter, it prompts again and on pressing it once more it closes the application.

Out of curiosity, I tried doing this on some other console input applications I have made and they all do this. What does "More?" mean? I never coded that in, so why is it there?

1 Answers
Related