First commit
This commit is contained in:
30
IUT/Info1/DS/main.cpp
Normal file
30
IUT/Info1/DS/main.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user