cours_progra/bac1/q1/livres/ex_cpp/main.cpp
Debucquoy 4fd7542f03
.
2023-09-20 15:18:20 +02:00

17 lines
314 B
C++

#include "points.h"
#include <iostream>
int main(int argc, char *argv[])
{
Points p(5,5);
std::cout << p.abscisse() << ' ' << p.ordonnee() << std::endl;
std::cout << p.rho() << ' ' << p.theta() << std::endl;
p.deplace(3.1, 2);
std::cout << p.abscisse() << ' ' << p.ordonnee() << std::endl;
return 0;
}