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
Forum Updated to NodeBB v4.3 + New Features

Using cout / cerr in code tracing / debugging questions

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 248 Views 2 Watching
  • 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 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

      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

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on 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
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on 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 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

          Pablo J. RoginaP 1 Reply Last reply
          0
          • A Anonymous_Banned275

            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

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on 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

            • Login

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