SHARE
TWEET

Untitled

a guest May 19th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     for (j = 0; j < n; j++) {
  2.         if (A[j][j] == 0){
  3.             for (i = 0; i < m; i++)
  4.             {
  5.                 if (A[j][i]!=0) {
  6.                     for (k = 0; k < n; k++)
  7.                     {
  8.                         a = A[k][j];
  9.                         A[k][j] = A[k][i];
  10.                         A[k][i] = a;
  11.                     }
  12.                     a = b[j];
  13.                     b[j] = b[i];
  14.                     b[i] = a;
  15.                 }
  16.             }
  17.         }
  18.     };
RAW Paste Data
Want to get better at C++?
Learn to code C++ in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top