Formatting C++ output text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sophia Olivas
    New Member
    • Mar 2011
    • 16

    #1

    Formatting C++ output text

    is there a way to make the cout statement produce bold text?

    example output:

    Select 1 for Checking Account

    I want the 1 to appear bold.

    Thanks!

    I am new to this programming thing with C++ sorry if the question seems elementary.
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    cout does not format text for display in any way shape or form. It's sole job is to send the data to standard output and what happens to it after that is of no concern to it.

    Rendering text as bold would be part of the terminal or windowing system displaying that text.

    Comment

    • Sophia Olivas
      New Member
      • Mar 2011
      • 16

      #3
      awe... too bad...but I understand!

      Thanks,
      Sophie

      Comment

      • deepduttamvjce
        New Member
        • Oct 2011
        • 2

        #4
        In c++...there is nothing that you can write a letter in bold.But you can use graphics to implement your idea you are using switch case isn't it? Just show the menu using initgraph() function...go to compiler and do right click ,where u write initgraph.There you can find the thing.

        Comment

        Working...