Mail Archives: djgpp/1995/05/02/17:10:06
>#include<stdio.h>
>enum{q=1,imax=256};
Nameless enums are rather bad practice, as they partially defeat one of
the purposes (i.e. type-checking) of enums. Why not just use a #define?
>printf("B: "); for(i=-imax;i<imax;i++) printf("%d ",i); printf("\n");}
>printf("B: "); for(i=-imax;;i++) {printf("%d ",i); break;} printf("\n");}
Do you need both to add the break and to remove the upper bound to get
things to work the way you want?
--- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) | httyp!
Geek code 2.1 [for explanation, finger hayden@ | `God's Laws' (Rudy Rucker,
vax1.mankato.msus.edu]: GCS/M/S d(-) H s g+ p? \ _Master of Space and Time_):
!au a17 w+ v+(++) C++(+++)>++++ UL++(S+)>++++ \ 1) Be clean. 2) Follow Gary.
P+(++) L++ 3(-) E- N+(++) K- W--(---) M-@ V-(--) \ 3) Teach God's Laws.
po-(--) Y+ t(+) !5 j(++) R(-) G' tv--(-) b+++ +---------------------------
!D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?
- Raw text -