cours_progra/bac1/q1/livres/ex_cpp/main.cpp

17 lines
314 B
C++
Raw Normal View History

2022-11-09 16:22:14 +01:00
#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;
}