Thread: including a table in my program

  1. #1
    Registered User
    Join Date
    Jul 2007

    including a table in my program

    Is it possible to make a c++ program where the output is composed of tables?
    I doubt if I can use printf for this task.
    What specific command should I study to be able to include a table in my program?

    Last edited by kingjames; 07-07-2007 at 11:47 PM.

  2. #2
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    If you're dealing with a console (as I imagine you are), then you could make your own table with some of those upper-valued ASCII characters. I'm not sure that's portable, though.
    "If you tell the truth, you don't have to remember anything"
    -Mark Twain

  3. #3
    Registered User manofsteel972's Avatar
    Join Date
    Mar 2004
    I think I saw on here were you could just use - + and | to create boxes and tables. The line/box drawing Ascii codes are really nice though.
    "Knowledge is proud that she knows so much; Wisdom is humble that she knows no more."
    -- Cowper

    Operating Systems=Slackware Linux 9.1,Windows 98/Xp
    Compilers=gcc 3.2.3, Visual C++ 6.0, DevC++(Mingw)

    You may teach a person from now until doom's day, but that person will only know what he learns himself.

    Now I know what doesn't work.

    A problem is understood by solving it, not by pondering it.

    For a bit of humor check out xkcd web comic

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can't stop my program at zero (Loan Table)
    By beachsidefl321 in forum C Programming
    Replies: 10
    Last Post: 06-24-2009, 09:14 PM
  2. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  3. Replies: 4
    Last Post: 12-14-2005, 02:21 PM
  4. insufficient memory for tsr
    By manmohan in forum C Programming
    Replies: 8
    Last Post: 01-02-2004, 09:48 AM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM