[Tech] upss....il codice :)

Ombra Rossa ombrarossa@hotmail.com
Dom 15 Apr 2001 12:21:08 CEST


#include <stdio.h>
#define a = 3

void stampa_matrice(char *);

main()
{
  int x;
  char matr[9];

   for (x = 0; x < 9; x++)
     matr [x] = '.';

   for (x=0; x<9;x++)
     printf ("%c", matr[x]);
   stampa_matrice (matr);
}

void stampa_matrice (char *matrice)
{
      int j = 0, i;

      printf ("%c", (*matrice));
      printf ("%c", (*matrice-1));
      printf ("%c", (*matrice-2));
      printf ("%c", (*matrice-3));
      printf ("%c", (*matrice-4));
      printf ("%c", (*matrice+5));
      printf ("%c", (*matrice+6));
      printf ("%c", (*matrice+7));
      printf ("%c", (*matrice+8));
      printf ("%c", (*matrice+9));
      printf ("%c", (*matrice+10));

      printf ("\n");
}
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





Maggiori informazioni sulla lista flug-tech