Alex9090

Untitled

Mar 2nd, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. for (int i = 0; i < nr_varf; i++)
  2.     {
  3.         cout << "coordonata x";
  4.         cin >> ab[i].xa;
  5.         cout << "coordonata y";
  6.         cin >> ab[i].ya;
  7.  
  8.     }
  9.     for (int i = 0; i < nr_varf; i++)
  10.     {
  11.         for (int j = 1; j < nr_varf; j++)
  12.         {
  13.             if (intersect(ab[i], ab[j]) == true)
  14.                 cout << "intersectie";
  15.         }
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment