Is it normal that “press any key to continue...” doesn't appear on a separate line?

I just started learning programming and started with C++. So I installed the IDE compiler CodeLite. But The problem is that whenever I run a "hello world" program, I notice that the “Press any key to continue . . . ” statement at the end of the command window appears directly after the “hello world” statement without printing a new line (it appears without any space and on the same line of the "hello world" statement). Is that normal?

Voting Results
33% Normal
Based on 6 votes (2 yes)
Help us keep this site organized and clean. Thanks!
[ Report Post ]
Comments ( 7 )
  • mauzi

    \n

    Comment Hidden ( show )
      -
    • Totooo

      Yeah I get that \n is for printing new line. However, I wanted to know whether it's normal or not.

      Comment Hidden ( show )
        -
      • mauzi

        Yes if that's not there

        Comment Hidden ( show )
          -
        • Totooo

          Oh okay thank you. The thing is that in all videos I saw online, their “press any key to continue...” showed up in a separate line, even though they didn't put \n or >> endl at the end. So I thought I have something wrong.

          Comment Hidden ( show )
  • palehorse

    It will do that unless you insert a line break yourself.

    Comment Hidden ( show )
      -
    • Totooo

      Okay thanks, I was just worried because all of the online video tutorials seemed to not have \n or endl but yet their "press any key" appeared on a separate line.

      Comment Hidden ( show )
        -
      • palehorse

        That's weird, the tutorials I watched always have a \n included. Maybe it was omitted for brevity? Or it's a quirk of their IDE? I don't know...

        Comment Hidden ( show )