Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Std::cout only prints everything after I end the program

    General and Desktop
    3
    6
    927
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Q
      qttester5 last edited by

      I have several std::cout statement scattered in my program for debugging, and they do not appear in the console at all while the program is running. When I end the program, they all show up at that moment. Anyone know what might cause this behavior?

      1 Reply Last reply Reply Quote 0
      • Q
        qttester5 last edited by

        Please disregard. I solved it.

        1 Reply Last reply Reply Quote 0
        • D
          daniel132 last edited by

          You should use qDebug

          1 Reply Last reply Reply Quote 0
          • Q
            qttester5 last edited by

            I'm working with std strings so I thought that keeping things in STL was wise.

            1 Reply Last reply Reply Quote 0
            • N
              nzxhvr70 last edited by

              What was your solution? I am a newbie and having the same issue.

              1 Reply Last reply Reply Quote 0
              • Q
                qttester5 last edited by

                i forgot the << endl

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post