SHARE
TWEET

Untitled

a guest Dec 14th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (i = 0; i < n - 3; i++) {
  2.         for (int w = i + 1; w < n - 2; w++) {
  3.             for (int k = w + 1; k < n - 1; k++)
  4.                 for (int m = k + 1; m < n; m++) {
  5.                     A = a[w][j] - a[i][j]; //х2-х1
  6.                     B = a[i][j + 1] - a[w][j + 1]; //у1-у2
  7.                     C = -a[w][j] * a[w][j + 1] - a[i][j] * a[i][j + 1] + 2 * a[i][j] * a[w][j + 1]; // х2у2 -х1у1+2*х1у2
  8.                     f << "Прямая " << resetiosflags(ios::showpos) << A << "x" << setiosflags(ios::showpos) << B << setiosflags(ios::showpos) << "y" << C << "=0 проходит через точки: " << resetiosflags(ios::showpos) << "(" << a[i][j] << ", " << a[i][j + 1] << ")" << " и (" << a[w][j] << ", " << a[w][j + 1] << ")" << "\n";
  9.                     }
  10.                 }
  11.         }
  12.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top