Advertisement
Guest User

Untitled

a guest
Sep 16th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct point
  5. {
  6. double x, y;
  7. };
  8.  
  9. struct triangle
  10. {
  11. point points[3][3];
  12. };
  13.  
  14. bool is_true(triangle xy[3][3], point itsPoint)
  15. {
  16.  
  17. }
  18.  
  19.  
  20.  
  21. int main()
  22. {
  23. point isPoint;
  24. triangle tr;
  25. double x, y;
  26.  
  27. for (int i = 0; i != 3; i++)
  28. {
  29. cout << "Enter the location of triangle's x and y" << endl;
  30. cin >> x; cin >> y;
  31.  
  32. tr.points[3][3] = { x, y };
  33. }
  34.  
  35. cout << "Another point what's belong (or not) to the triangle : "; cin >> isPoint.x >> isPoint.y;
  36.  
  37. is_true(tr.points[3][3], isPoint);
  38.  
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement