Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Cooking with Chronos
Mon Aug 24, 2015 11:11 pm by Ilthaelyn

» Resurrecting!
Fri Jul 10, 2015 5:39 pm by Frostine

» story time!
Thu May 07, 2015 1:49 pm by Kyux

» raid selfies?
Tue Apr 28, 2015 1:47 am by Ilthien

» Gear check
Thu Apr 09, 2015 7:52 pm by Ilthien

» Raiding characters
Thu Apr 09, 2015 5:22 am by Ilthien

»  On the breeding habits of the Draenei
Thu Apr 09, 2015 5:16 am by Ilthien

» Thien's New choppa!!
Thu Apr 09, 2015 5:14 am by Ilthien

» Raiding times
Sun Mar 15, 2015 2:31 am by PetiteEtoile

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Poll
Gallery


Who is online?
In total there are 3 users online :: 0 Registered, 0 Hidden and 3 Guests

None

[ View the whole list ]


Most users ever online was 111 on Tue Jan 11, 2011 3:43 pm

Thinger help :D

View previous topic View next topic Go down

Thinger help :D

Post  Thorgal on Tue Sep 23, 2008 7:50 am

i need to draw a figure like this:

Code:

+-------+
|  *    |
|  /*\  |
| //*\\ |
| \\*// |
|  \*/  |
|  *    |
+-------+
|  *    |
|  /*\  |
| //*\\ |
| \\*// |
|  \*/  |
|  *    |
+-------+


This is what i have so far lol:

Code:

public class DrawFigure {
    public static final int SUB_HEIGHT = 3;

    public static void main(String[] args) {
        drawLine();
        drawTop();
        drawBottom();
        drawLine();
        drawBottom();
        drawTop();
        drawLine();
    }

    public static void drawLine() {
        System.out.print("+-");
        for (int i = 1; i <= (2 * SUB_HEIGHT); i++) {
            System.out.print("-");
        }
        System.out.println("+");
    }

    public static void drawTop() {
        for (int line = 1; line <= SUB_HEIGHT; line++) {
            System.out.print("|");
            for (int i = 1; i <= (line - 1); i++) {
                System.out.print(" ");
            }
            System.out.print("*");
            int spaces = 2 * SUB_HEIGHT - 2 * line;
            for (int i = 1; i <= spaces; i++) {
                System.out.print(" ");
            }
            System.out.print("*");
            for (int i = 1; i <= (line - 1); i++) {
                System.out.print(" ");
            }
            System.out.println("|");
        }
    }


    public static void drawBottom() {
        for (int line = 1; line <= SUB_HEIGHT; line++) {
            System.out.print("|");
            for (int i = 1; i <= (SUB_HEIGHT - line); i++) {
                System.out.print(" ");
            }
            System.out.print("/");
            for (int i = 1; i <= 2 * (line - 1); i++) {
                System.out.print(" ");
            }
            System.out.print("\\");
            for (int i = 1; i <= (SUB_HEIGHT - line); i++) {
                System.out.print(" ");
            }
            System.out.println("|");
        }
    }
}


and it looked like

Code:

+---------+
|*      *|
| *    * |
|  *  *  |
|  **  |
|  /\  |
|  /  \  |
| /    \ |
|/      \|
+---------+
|  /\  |
|  /  \  |
| /    \ |
|/      \|
|*      *|
| *    * |
|  *  *  |
|  **  |
+---------+

avatar
Thorgal

Posts : 62
Join date : 2008-09-05

View user profile

Back to top Go down

Re: Thinger help :D

Post  Holydrisst on Tue Sep 23, 2008 8:51 am

You should just /uninstall life imo
avatar
Holydrisst

Posts : 89
Join date : 2008-09-05
Age : 29
Location : Austin, Texas (San Antonio Home Town)

View user profile

Back to top Go down

Re: Thinger help :D

Post  Frostine on Tue Sep 23, 2008 11:56 am

ROFL Very Happy uninstall life?? you suck Razz
avatar
Frostine
Admin

Posts : 160
Join date : 2008-09-03

View user profile http://forum.chronosguild.com

Back to top Go down

Re: Thinger help :D

Post  Droxia on Tue Sep 23, 2008 6:53 pm

I'm not much of a code monkey (I could be if I tried) but artistically speaking, it looks like you need to make your values either

A.) Turn 90 degrees
B.) Go on the Y Axis (Up and Down) instead of the X (Left and Right)

Droxia

Posts : 474
Join date : 2008-09-05

View user profile

Back to top Go down

Re: Thinger help :D

Post  Ulalume on Wed Sep 24, 2008 3:47 am

Pray Thorg, pray. (that is saying alot commng from the lips of an apostate; translation: you are seriously fucked Wink )
avatar
Ulalume

Posts : 277
Join date : 2008-09-06
Age : 28
Location : Breezing through Ulduar while reasearching the next patch.

View user profile

Back to top Go down

Re: Thinger help :D

Post  radgor on Mon Sep 29, 2008 10:11 am

Why not just use the printl command to print the graphic you want?
Then again i dont know what program your using so their might be restrictions depending on the program.
But I can code in things like c++ c# vb blitzbasic and 3ds max for animation so if you need help i would be one of the logical people nowere near as logical as thinger but i might still be able to help Very Happy

~RADGOR

radgor

Posts : 6
Join date : 2008-09-27

View user profile

Back to top Go down

Re: Thinger help :D

Post  Frostine on Tue Sep 30, 2008 6:13 am

ROFL droxia Razz awesome Razz .. I am going to quote you on my next test Razz
avatar
Frostine
Admin

Posts : 160
Join date : 2008-09-03

View user profile http://forum.chronosguild.com

Back to top Go down

Re: Thinger help :D

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum