Mathc complexes/h08d

Un livre de Wikilivres.

Application

Installer et compiler ce fichier dans votre répertoire de travail.

c00b.c
/* ------------------------------------ */
/*  Save as :   c00b.c                  */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
void fun(int r,int c)
{
double **A     = i_mZ(r,c);

  clrscrn();

  printf(" See the file \n\n");
  
  fPE_mZ(A,"a.txt"," A :", S5,P1, S7,P1,C4);

  f_mZ(A);
}
/* ------------------------------------ */
int main(void)
{
time_t t;

  srand(time(&t));
  
   do 
        fun(rp_I(R4),rp_I(C5));
        
    while(stop_w());
        
  return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */


La fonction fPE_mZ(); est identique à la fonction PE_mZ(); mais elle écrit les nombres dans un fichier texte