🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #13856

Duda, error en programa.

#13856
From: Santiago Romero
Date: Sun, 07 Jan 2001 11:59
57 lines
3429 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


 Enas... estoy haciendo un programa y no se si tengo un error en el
 porque no compila:


long h[4];t(){h[3]-=h[3]/3000;setitimer(0,h,0);}c,d,l,v[]={(int)t,0,2},w,s,I,K
=0,i=276,j,k,q[276],Q[276],*n=q,*m,x=17,f[]={7,-13,-12,1,8,-11,-12,-1,9,-1,1,
12,3,-13,-12,-1,12,-1,11,1,15,-1,13,1,18,-1,1,2,0,-12,-1,11,1,-12,1,13,10,-12,
1,12,11,-12,-1,1,2,-12,-1,12,13,-12,12,13,14,-11,-1,1,4,-13,-12,12,16,-11,-12,
12,17,-13,1,-1,5,-12,12,11,6,-12,12,24};u(){for(i=11;++i<264;)if((k=q[i])-Q[i]
){Q[i]=k;if(i-++I||i%12<1)printf("\033[%d;%dH",(I=i)/12,i%12*2+28);printf(
"\033[%dm  "+(K-k?0:5),k);K=k;}Q[263]=c=getchar();}G(b){for(i=4;i--;)if(q[i?b+
n[i]:b])return 0;return 1;}g(b){for(i=4;i--;q[i?x+n[i]:x]=b);}main(C,V,a)char*
*V,*a;{h[3]=1000000/(l=C>1?atoi(V[1]):2);for(a=C>2?V[2]:"jkl pq";i;i--)*n++=i<
25||i%12<2?7:0;srand(getpid());system("stty cbreak -echo stop u");sigvec(14,v,
0);t();puts("\033[H\033[J");for(n=f+rand()%7*4;;g(7),u(),g(0)){if(c<0){if(G(x+
12))x+=12;else{g(7);++w;for(j=0;j<252;j=12*(j/12+1))for(;q[++j];)if(j%12==10){
for(;j%12;q[j--]=0);u();for(;--j;q[j+12]=q[j]);u();}n=f+rand()%7*4;G(x=17)||(c
=a[5]);}}if(c==*a)G(--x)||++x;if(c==a[1])n=f+4**(m=n),G(x)||(n=m);if(c==a[2])G
(++x)||--x;if(c==a[3])for(;G(x+12);++w)x+=12;if(c==a[4]||c==a[5]){s=sigblock(
8192);printf("\033[H\033[J\033[0m%d\n",w);if(c==a[5])break;for(j=264;j--;Q[j]=
0);while(getchar()-a[4]);puts("\033[H\033[J\033[7m");sigsetmask(s);}}d=popen(
"stty -cbreak echo stop \023;sort -mnr -o HI - HI;cat HI","w");fprintf(d,
"%4d from level %1d by %s\n",w,l,getlogin());pclose(d);}

 �Vosotros veis el error?
 salu2.








 (obviamente es un chiste, es el tetris.c.gz que viene con el
 screen, que compila y oiga, es un tetris de verdad!).
- -- 
Podemos generar un corte de luz f�cilmente si lo invocamos diciendo:
"�Ala! Acabo este cap�tulo/rutina y grabo el documento/programa."
_-----------------------------------------------------_
|  NoP / Compiler    --    compiler@escomposlinux.org   |
|-------------------------------------------------------|
|  POWERED BY - Linux Debian 2.2  -  Reg. User #74.821  |
|  http://www.escomposlinux.org/sromero   ICQ 98602813  |
 ~-----------------------------------------------------~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjpYWioACgkQx0J/i4MrH+fCSgCgh8AIptoPA5IyV8CJbxaDmH+D
ckwAn1yVm8LmGQJosvskzUt68aFAc6Zq
=Qb8S
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <anl939.c91.ln@127.0.0.1>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!europa.netcrusader.net!193.162.153.122!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!va1-tp-1-u-0229.du.onolab.COM!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,d0cdcf0a2ad8b39e,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-01-07 04:06:03 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!europa.netcrusader.net!193.162.153.122!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!va1-tp-1-u-0229.du.onolab.COM!not-for-mail
From: sromero@escomposlinux.org (Santiago Romero)
Newsgroups: es.comp.os.linux.programacion
Subject: Duda, error en programa.
Date: Sun, 7 Jan 2001 12:59:38 +0100
Lines: 57
Message-ID: <anl939.c91.ln@127.0.0.1>
Reply-To: compiler@escomposlinux.org
NNTP-Posting-Host: va1-tp-1-u-0229.du.onolab.com (62.42.44.230)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 978868989 5534454 62.42.44.230 (16 [39726])
User-Agent: slrn/0.9.6.2 (Linux)