Printing in a Tabular format to the screen

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • siegbert
    New Member
    • Oct 2011
    • 1

    Printing in a Tabular format to the screen

    I am a beginner in programming, but still its interesting as i always want to know the real programming ,so thats why i keep asking. I need assistance on how to code using functions so that the output to the screen is in a neat tabular format.
  • srinu1034
    New Member
    • Sep 2011
    • 1

    #2
    you can use gotoxy() function for reaching specific position on screen.
    Also you can use 2D array to store results and finally print them.

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      Are you using printf() or cout to print text?

      For printf(), you can specify a field width to help your columns line up nicely. For example, "%8d" instead of "%d".

      I'm sure there's some way to do the same for cout.

      Comment

      Working...