Chronos Guild Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Cooking with Chronos
Thinger help :D EmptyMon Aug 24, 2015 11:11 pm by Ilthaelyn

» Resurrecting!
Thinger help :D EmptyFri Jul 10, 2015 5:39 pm by Frostine

» story time!
Thinger help :D EmptyThu May 07, 2015 1:49 pm by Kyux

» raid selfies?
Thinger help :D EmptyTue Apr 28, 2015 1:47 am by Ilthien

» Gear check
Thinger help :D EmptyThu Apr 09, 2015 7:52 pm by Ilthien

» Raiding characters
Thinger help :D EmptyThu Apr 09, 2015 5:22 am by Ilthien

»  On the breeding habits of the Draenei
Thinger help :D EmptyThu Apr 09, 2015 5:16 am by Ilthien

» Thien's New choppa!!
Thinger help :D EmptyThu Apr 09, 2015 5:14 am by Ilthien

» Raiding times
Thinger help :D EmptySun Mar 15, 2015 2:31 am by PetiteEtoile

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Poll
Gallery


Thinger help :D Empty
Who is online?
In total there are 2 users online :: 0 Registered, 0 Hidden and 2 Guests

None

[ View the whole list ]


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

Thinger help :D

+2
Holydrisst
Thorgal
6 posters

Go down

Thinger help :D Empty Thinger help :D

Post  Thorgal 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:

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

Thorgal
Thorgal

Posts : 62
Join date : 2008-09-05

Back to top Go down

Thinger help :D Empty Re: Thinger help :D

Post  Holydrisst Tue Sep 23, 2008 8:51 am

You should just /uninstall life imo
Holydrisst
Holydrisst

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

Back to top Go down

Thinger help :D Empty Re: Thinger help :D

Post  Frostine Tue Sep 23, 2008 11:56 am

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

Posts : 160
Join date : 2008-09-03

http://forum.chronosguild.com

Back to top Go down

Thinger help :D Empty Re: Thinger help :D

Post  Droxia 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

Back to top Go down

Thinger help :D Empty Re: Thinger help :D

Post  Ulalume 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 )
Ulalume
Ulalume

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

Back to top Go down

Thinger help :D Empty Re: Thinger help :D

Post  radgor 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

Back to top Go down

Thinger help :D Empty Re: Thinger help :D

Post  Frostine Tue Sep 30, 2008 6:13 am

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

Posts : 160
Join date : 2008-09-03

http://forum.chronosguild.com

Back to top Go down

Thinger help :D Empty Re: Thinger help :D

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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