ascii box

This is a discussion on ascii box within the C Programming forums, part of the General Programming Boards category; Hey..i have a function which draws a box on the screen every time i call it. the box looks somthing ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    84

    ascii box

    Hey..i have a function which draws a box on the screen every time i call it.
    the box looks somthing like this...
    Code:
    printf("_____________\n");
    printf("|                      |\n");
    printf("|                      |\n");
    printf("|                      |\n");
    printf("|                      |\n");
    printf("|                      |\n");
    printf("|                      |\n");
    printf("|                      |\n");
    printf("|                      |\n");
    printf("|                      |\n");
    printf("|___________|\n");
    printf("\n");
    everytime i call the function it displays the boxes horizontally in a column because of the /n's..but i want to display them in a single row..how do i do that ?

  2. #2
    Banned
    Join Date
    Dec 2008
    Location
    Maputo, Mozambique
    Posts
    82
    Dood! I jus sed. I can write sample but I wud need to no what goes in da boxes.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    84
    im trying playing cards...

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,532
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 02-13-2008, 01:59 PM
  2. Replies: 11
    Last Post: 03-24-2006, 10:26 AM
  3. How to program a "back" button with MFC
    By 99atlantic in forum Windows Programming
    Replies: 3
    Last Post: 04-26-2005, 08:34 PM
  4. New Theme
    By XSquared in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 04-01-2004, 07:00 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM

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