Table

Discussion in 'C' started by kapilmishra16, Nov 18, 2010.

  1. kapilmishra16

    kapilmishra16 New Member

    Joined:
    Nov 9, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    kanpur
    How to draw taular format using C
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    2
    Trophy Points:
    0
    Topic Moved to C Programming
     
  3. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    19
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    http://www.techgeek.in
    The only way I know to do it is by using printf and gotoxy...
    you need to manipulate the distance to reflect the actual lines and data to form a table...
     
  4. go4expert

    go4expert Moderator

    Joined:
    Aug 3, 2004
    Messages:
    306
    Likes Received:
    9
    Trophy Points:
    0
    You can do it using only printf as well if you know what character is printer when like this

    Code:
    +----------+----------+
    | Heading1 | Heading2 |
    +----------+----------+
    |          |          |
    +----------+----------+
    |          |          |
    |          |          |
    |          |          |
    +----------+----------+
    
     
  5. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    19
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    http://www.techgeek.in
    yes, one can use printf but using printf would be very tedious job…thatz why I suggested him to use gotoxy()
     
  6. go4expert

    go4expert Moderator

    Joined:
    Aug 3, 2004
    Messages:
    306
    Likes Received:
    9
    Trophy Points:
    0
    I don't think it will be tedious and why you think it will be tedious.

    gotoxy does not work with many compilers as well.
     
  7. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    19
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    http://www.techgeek.in
    then you dnt have any idea about printf or u have never programmed in c
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice