Mathc matrices/c20c
Installer et compiler ces fichiers dans votre répertoire de travail.
c00b.c |
---|
/* ------------------------------------ */
/* Save as : c00b.c */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
/* ------------------------------------ */
void fun(int r,int c)
{
double **A = r_mR(i_mR(r,c),99.);
clrscrn();
printf(" A :\n");
pall_mR(A,S5,P0,C10);
printf(" A :\n");
pall_mR(swapcoefR0_mR(A,C1,C2),S5,P0,C10);
f_mR(A);
}
/* ------------------------------------ */
int main(void)
{
time_t t;
srand(time(&t));
int i;
do
{
i = rp_I(R3)+R1;
fun(i,i+C1);
} while(stop_w());
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Exemple de sortie écran :
------------------------------------
A :
+3 +1 +2 +3
+4 +30 +32 +73
+0 +54 +81 +15
A :
+3 +2 +1 +3
+4 +30 +32 +73
+0 +54 +81 +15
Press return to continue
Press X to stop