Thread: ascii box

  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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 02-13-2008, 02:59 PM
  2. Replies: 11
    Last Post: 03-24-2006, 11: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, 08:00 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM