Author Topic: How to customize console output in codeblocks?  (Read 658 times)

Offline giftofshivaji

  • Single posting newcomer
  • *
  • Posts: 6
How to customize console output in codeblocks?
« on: April 01, 2023, 01:26:50 pm »
https://imgur.com/a/kb96Iq6

How to get that

"- - - - - - -"

in codeblocks console output?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5784
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: How to customize console output in codeblocks?
« Reply #1 on: April 01, 2023, 02:30:45 pm »
I think this is a general C++ programming question.

Which is not suitable for our C::B forum.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline giftofshivaji

  • Single posting newcomer
  • *
  • Posts: 6
Re: How to customize console output in codeblocks?
« Reply #2 on: April 01, 2023, 02:43:26 pm »
Nope. I'm asking how to get that "-----" for every output without writing c++ code for it.

Offline Commaster

  • Almost regular
  • **
  • Posts: 160
Re: How to customize console output in codeblocks?
« Reply #3 on: April 01, 2023, 02:46:08 pm »
This is the default output, including the next 2 lines, when you run your application using Code::Blocks' "Run" button.

Offline giftofshivaji

  • Single posting newcomer
  • *
  • Posts: 6
Re: How to customize console output in codeblocks?
« Reply #4 on: April 02, 2023, 05:41:51 am »
Nope it's not for me.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7418
    • My Best Post
Re: How to customize console output in codeblocks?
« Reply #5 on: April 03, 2023, 01:23:22 am »
Nope it's not for me.

So, stop using the Code::Blocks run button to run your program.

I suggest using the Toolsplus plugin or the Tools menu.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org