with humblest apologies ...

Entry #1301, Wed, July 31, 2002, 15:00 EST (Coding, Hacking, & CS stuff)
(posted when I was 24 years old.)
George pointed out a shortcoming in that bit of code I posted. While the code pyramid was 15 lines big, the default size of the output pyramid was 16 lines. How silly. So due to popular demand, here's a patch to fix that:

--- t.c.orig    2002-07-31 15:01:07.000000000 -0500
+++ t.c 2002-07-31 15:00:36.000000000 -0500
@@ -5,7 +5,7 @@
                    char*v[])
                   {int x[5];0
                  [x]=aa>1?atoi
-                (v[1]):020;for(
+                (v[1]):017;for(
                1[x]=1;1[x]<=0[x]
               ;++1[x]){for(3[x]=1
              ;3[x]<0[x]-1[x]+1;++3


Also, I apologize for pine's silly behavior. If you read that previous entry with pine, you probably noticed that pine put the initial semicolon at the left of the line instead of centered at the top of the pyramid where it's supposed to be. Well, booooo.
This entry is rated 4.0000/5 based on 1 ratings. You have not rated this entry.
[ previous entry ] [ next entry ]