Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Message-ID | <508B2C40.3E76@mindspring.com> (permalink) |
|---|---|
| Date | 2012-10-26 20:35 -0400 |
| From | pete <pfiland@mindspring.com> |
| Organization | PF |
| Newsgroups | comp.lang.c |
| Subject | Re: Write a program to print star using * ? |
| References | (2 earlier) <5086F3C1.2FED@mindspring.com> <1btxtky76l.fsf@new-snowball.wb.pfeifferfamily.net> <508791B0.4173@mindspring.com> <508A021C.387C@mindspring.com> <dAwis.2099$mC.2045@newsfe16.iad> |
Lew Pitcher wrote:
>
> On Thursday 25 October 2012 23:23, in comp.lang.c, pfiland@mindspring.com
> wrote:
> [snip]
> > And now,
> > because it's almost the same program,
> > something that resembles a Koch snowflake:
> >
> > /* BEGIN snowflake.c output */
> [snip]
>
> Double Plus One good :-)
Thank you.
I was surprised to find out that the weak PRNG,
which I had used to make the star
out of two Sierpinski triangles in the previous program
(as per your recomendation to superimpose two triangles),
wasn't good enough for the snowflake.
When I used the exact same PRNG as before,
the snowflake looked the this:
/* BEGIN snowflake.c output */
***
***
**
**
*
*
* ***
* *
** ** ** * ***
*** ** * *** ****
* ** ** **
*** ** **
** ** *
*
** ***
** **
*** ** *
*** ** ***
* **
**
*
*
*
** ** ***
*** ** ****
* ** **
*** **
** *
*
** * ***
** * **
*** * ** *
*** *** ** * ** ***
* * * **
** **
*** *
**
**
**
**
* ***
**
/* END snowflake.c output */
--
pete
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Write a program to print star using * ? Nikhil Joshi <nitin.nitinperderusted.rastogi@gmail.com> - 2012-10-23 08:52 -0700
Re: Write a program to print star using * ? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2012-10-23 09:56 -0600
Re: Write a program to print star using * ? Nikhil Joshi <nitin.nitinperderusted.rastogi@gmail.com> - 2012-10-23 09:03 -0700
Re: Write a program to print star using * ? James Kuyper <jameskuyper@verizon.net> - 2012-10-23 12:35 -0400
Re: Write a program to print star using * ? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2012-10-23 10:45 -0600
Re: Write a program to print star using * ? pete <pfiland@mindspring.com> - 2012-10-23 15:45 -0400
Re: Write a program to print star using * ? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2012-10-23 19:45 -0600
Re: Write a program to print star using * ? pete <pfiland@mindspring.com> - 2012-10-24 02:58 -0400
Re: Write a program to print star using * ? pete <pfiland@mindspring.com> - 2012-10-25 23:23 -0400
Re: Write a program to print star using * ? Lew Pitcher <lpitcher@teksavvy.com> - 2012-10-26 09:52 -0400
Re: Write a program to print star using * ? pete <pfiland@mindspring.com> - 2012-10-26 20:35 -0400
Re: Write a program to print star using * ? "copiga@h_o_t_mail.co.uk" <copiga@h_o_t_mail.co.uk> - 2012-10-23 11:21 -0500
Re: Write a program to print star using * ? "BartC" <bc@freeuk.com> - 2012-10-23 17:25 +0100
Re: Write a program to print star using * ? Kenneth Brody <kenbrody@spamcop.net> - 2012-10-23 13:21 -0400
Re: Write a program to print star using * ? Lew Pitcher <lpitcher@teksavvy.com> - 2012-10-23 21:59 -0400
Re: Write a program to print star using * ? Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-10-27 06:05 -0700
csiph-web