Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using cout / cerr in code tracing / debugging questions

Using cout / cerr in code tracing / debugging questions

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 213 Views
  • 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on 10 Aug 2020, 01:36 last edited by
    #1
    1. Why each message contains additional character " 1 " at the end ?
    2. Why am I getting "issues " about "the address ... evaluate as true " ?
    3. Why am I missing SOME "endl" ?

    921608b1-8d73-4dd0-ab0c-280d5cda77b0-image.png

    de0f4951-c29c-41b3-aebb-5c6e39635343-image.png

    1 Reply Last reply
    0
    • A Anonymous_Banned275
      10 Aug 2020, 12:57

      SOLVED
      Well, I found same "answer " the hard way. It was my lazy way of coding mistake, however, when used in another project the complier threw an error and actually provided "insert std::" solution .
      Not really sure why I did not get same response in first project.

      Thanks

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 10 Aug 2020, 13:11 last edited by
      #4

      @AnneRanch said in Using cout / cerr in code tracing / debugging questions:

      SOLVED

      great, so please don't forget to mark your post as such!

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hskoglund
        wrote on 10 Aug 2020, 01:46 last edited by
        #2

        Instead of using

        ... << endl;
        

        instead try

        ... << std::endl;
        
        1 Reply Last reply
        1
        • A Offline
          A Offline
          Anonymous_Banned275
          wrote on 10 Aug 2020, 12:57 last edited by
          #3

          SOLVED
          Well, I found same "answer " the hard way. It was my lazy way of coding mistake, however, when used in another project the complier threw an error and actually provided "insert std::" solution .
          Not really sure why I did not get same response in first project.

          Thanks

          P 1 Reply Last reply 10 Aug 2020, 13:11
          0
          • A Anonymous_Banned275
            10 Aug 2020, 12:57

            SOLVED
            Well, I found same "answer " the hard way. It was my lazy way of coding mistake, however, when used in another project the complier threw an error and actually provided "insert std::" solution .
            Not really sure why I did not get same response in first project.

            Thanks

            P Offline
            P Offline
            Pablo J. Rogina
            wrote on 10 Aug 2020, 13:11 last edited by
            #4

            @AnneRanch said in Using cout / cerr in code tracing / debugging questions:

            SOLVED

            great, so please don't forget to mark your post as such!

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0

            1/4

            10 Aug 2020, 01:36

            • Login

            • Login or register to search.
            1 out of 4
            • First post
              1/4
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved