Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Linear Algebra and the C Language/a0et

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

__NOTOC__ Install and compile this file in your working directory. /* ------------------------------------ */ /* Save as : c00c.c */ /* ------------------------------------ */ #include "v_a.h" /* ------------------------------------ */ void fun(int r, int c) { int Cn ; double **A = i_mR(r,c); for(Cn = c; Cn; Cn--) { clrscrn(); printf(" C%d Columns by row\n\n",Cn); printf(" A:" ); p_mR(A, S8,P2,Cn); stop(); } f_mR(A); } /* ------------------------------------ */ int main(void) { time_t t; srand(time(&t)); do{ fun(rp_I(R4),rp_I(C3)+C3); clrscrn(); }while(stop_w()); return 0; } /* ------------------------------------ */ /* ------------------------------------ */ Cn: Allows you to control the number of columns to display per row. Screen output example: C3 Columns by row A: +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 Press return to continue. C2 Columns by row A: +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 Press return to continue. C1 Columns by row A: +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 +0.00 Press return to continue.