[NetBehaviour] How to display code-based art...

james morris james at jwm-art.net
Tue Sep 8 02:16:25 CEST 2009


On 7/9/2009, "Pall Thayer" <pallthay at gmail.com> wrote:

>Actually, the mistake is understandable, in Perl we just do:
>
>foreach(0..999999){ whatever; }
>
>I don't know... can you do that in C?

yes:

int i = 0; for( ; i < 9999999; ++i ){ whatever; }

but can you do:

int a = 0, b = 50;
for ( ; (b < a ? 0 : 1); ++a, --b, printf( " b > a " ) ){
    /* whatever */
}



More information about the NetBehaviour mailing list