Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void symetria(double& x, double& y, double a, double b)
- {
- double x_wynik = // miejsce na wzór
- double y_wynik = // miejsce na wzór
- x = x_wynik;
- y = y_wynik;
- }
- int main()
- {
- double x, y;
- cout << "Podaj wspolrzedne punktu: ";
- cin >> x >> y;
- cout << "Podaj parametry prostej: ";
- double a, b;
- cin >> a >> b;
- symetria(x, y, a, b);
- cout << "Punkt symetryczny do danego: " << x << "," << y << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement