Search:

Type: Posts; User: Norm

Search: Search took 0.24 seconds.

  1. Replies
    11
    Views
    2,800

    Re: Sierpinski's Triangle in Graphics

    Define the variables dx and dy in the same place you have defined all the other variables.


    Where does your code form a triangle? I only see where it draws a line.
  2. Replies
    11
    Views
    2,800

    Re: Sierpinski's Triangle in Graphics

    Do you have any specific questions about your assignment?

    One change you should make to your code is move move the drawing to after the the values of x4, and y4 are computed and only do it once...
  3. Replies
    11
    Views
    2,800

    Re: Sierpinski's Triangle in Graphics

    What do you expect the program you have written to do?
    The only thing I see it doing is that it draws a String and a line in three different places.
    What is not working about that String and that...
  4. Replies
    11
    Views
    2,800

    Re: Sierpinski's Triangle in Graphics

    Where are the variables: dx and dy defined? The compiler can not find them in scope where they are used in the code.

    You have many locally defined variables with those names. Their definitions go...
  5. Replies
    11
    Views
    2,800

    Re: Sierpinski's Triangle in Graphics

    Please explain.
    Post the full text of the error messages here.

    Please Edit your post and wrap your code with


    <YOUR CODE HERE>

    to get highlighting
Results 1 to 5 of 5