Advertisement
MeehoweCK

Untitled

Nov 18th, 2020
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void symetria(double& x, double& y, double a, double b)
  6. {
  7.     double x_wynik = // miejsce na wzór
  8.     double y_wynik = // miejsce na wzór
  9.     x = x_wynik;
  10.     y = y_wynik;
  11. }
  12.  
  13. int main()
  14. {
  15.     double x, y;
  16.     cout << "Podaj wspolrzedne punktu: ";
  17.     cin >> x >> y;
  18.     cout << "Podaj parametry prostej: ";
  19.     double a, b;
  20.     cin >> a >> b;
  21.     symetria(x, y, a, b);
  22.     cout << "Punkt symetryczny do danego: " << x << "," << y << endl;
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement