including a table in my program

This is a discussion on including a table in my program within the C++ Programming forums, part of the General Programming Boards category; Is it possible to make a c++ program where the output is composed of tables? I doubt if I can ...

  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    1

    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?

    thanks..
    Last edited by kingjames; 07-08-2007 at 12:47 AM.

  2. #2
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    Posts
    907
    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
    Posts
    317
    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 http://xkcd.com/235/

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, 10:14 PM
  2. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 02: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, 11:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21