Read that friendly Magazine c´est le nom d´un magazine d´informatique, enfin ça parle de beaucoup de thèmes autour de l´informatiqueDans le n°2, il y a une programmation à faire en C et je n´ai sous la main que Borland C++ donc j´ai programmé ce qui vient :
D[4], n ,d,*T,l,L;
main(i,v) char**v;
{
if(i<3)return;
L=atoi(v[1]);
l=atoi(v[2]);
T=alloca(4*L*l);
while(n<L*l)
{
for(i=D[d];i<(d&1?l:L)-D[d²];i++)T[!d?i+L*D[1]:d<2
?L-D[2]-1+L*i:d<3?-i-1+L*(l-D[3]):*D+L*(l-i-1)]=++
n;
D[d=++d&3]++;
}
while(n)printf(--n%L?"%5d":"%5d\n",*T++);
}
et j´ai quelques soucis : d´une part quand je compile sous borland ça marche pas, il y a