30 lines
490 B
C++
30 lines
490 B
C++
#include <iostream>
|
|
|
|
#include "trace.h"
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
float xmin, xmax, ymin, ymax, x, y;
|
|
float rad;
|
|
unsigned int nb_points, i;
|
|
|
|
cout << "Saisir" << endl;
|
|
cin >> xmin >> ymin;
|
|
|
|
xmax = Saisie_plusgrand(xmin);
|
|
ymax = Saisie_plusgrand(ymin);
|
|
|
|
cout << "Saisir" << endl;
|
|
cin >> nb_points;
|
|
|
|
// Repere(...)
|
|
|
|
for (i = 0; i < nb_points; i++) {
|
|
rad = Deg2rad(x);
|
|
y = f(rad);
|
|
Trace(x, y);
|
|
}
|
|
|
|
return 0;
|
|
} |