Thread: Hello! May I get some assistance?

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    2

    Question Hello! May I get some assistance?

    Hello,
    I need alittle bit of help with my program, but I do not know how to ask the question?
    I'll explain my situation.

    I'm trying to print out a chart--->
    printf("============\n");
    printf("|"something goes in here"|\n");
    printf("============\n");
    printf("|"something goes in here"|\n");
    printf("|"something goes in here"|\n");
    printf("|"something goes in here"|\n");
    printf("|"something goes in here"|\n");
    printf("============\n");
    and I'm trying to print another chart right next to it, not below it.(is it clear, what I'm trying to accomplish?)

    The problem is "\n" thing that I use to make the first chart is making it harder to create the second chart right NEXT to it. Do you guys have any ideas?suggestions?

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Design an algorithm to print several columns then, and only break the line at the end of the row (the last chart).

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    2
    ok, thanks i'll try that.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Quote Originally Posted by Flipz View Post
    Hello,
    I need alittle bit of help with my program, but I do not know how to ask the question?
    I'll explain my situation.

    I'm trying to print out a chart--->


    and I'm trying to print another chart right next to it, not below it.(is it clear, what I'm trying to accomplish?)

    The problem is "\n" thing that I use to make the first chart is making it harder to create the second chart right NEXT to it. Do you guys have any ideas?suggestions?
    Something like:
    Code:
    printf("===============================================\n");
    printf("|"chart 1, line 1     \t\t  chart 2, line 2 \n");
    /* etc. */
    printf("===============================================\n");
    printf("|"chart 1, line 2     \t\t  chart 2, line 2 \n");
    /* etc. */
    printf("===============================================\n");

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hello,i need assistance in completing the code
    By toader in forum C++ Programming
    Replies: 1
    Last Post: 06-22-2009, 03:32 AM
  2. Variable Timer assistance
    By rich2852 in forum C Programming
    Replies: 2
    Last Post: 01-21-2009, 05:43 AM
  3. Any assistance would be greatly appreciated
    By iiwhitexb0iii in forum C Programming
    Replies: 18
    Last Post: 02-26-2006, 12:06 PM
  4. Need some more assistance
    By Thantos in forum Windows Programming
    Replies: 6
    Last Post: 08-14-2003, 12:13 PM
  5. Need assistance for major text base Arena RPG project
    By Ruflano in forum C++ Programming
    Replies: 0
    Last Post: 04-04-2002, 11:11 AM