1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    Trophy Points:
    0
    Topic Moved to C Programming
     
  3. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    17
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    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:
    7
    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:
    17
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    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:
    7
    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:
    17
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    then you dnt have any idea about printf or u have never programmed in c
     

Share This Page