-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
73 lines (54 loc) · 1.5 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#include "header.h"
using namespace std;
int main()
{
/* int a,b;
cin >> a;
cin >> b;
echange(a,b);
cout <<a <<"\n"<< b<<"\n";
setValue(&e);
raz(&e);
int *adi;
double *add;
adi = new int;
add = new double[100];
double *adtab;
int nval;
cout << "nombre de valeurs?";
cin >> nval;
adtab = new double[nval];*/
/*int tailleTableau;
int numeroBloc;
cin >> tailleTableau;
int *ptr = NULL;
for(numeroBloc = 0; ; numeroBloc++)
{
ptr = new int[tailleTableau];
if (!ptr)
{cout<<"allocation du bloc" << numeroBloc << "a echoue";
exit(1);}
else
cout << "allocation du bloc" << numeroBloc << "faite avec succes";
}*/
/*Point p(5,3);
p.affiche();
p.deplace();
p.affiche();*/
/*Point p(5,3);
cout << "abscisse : "<<p.get_abscisse()<<"\n";
cout << "ordonnee : "<<p.get_ordonnee()<<"\n";
p.deplace();
cout << "abscisse : "<<p.get_abscisse()<<"\n";
cout << "ordonnee : "<<p.get_ordonnee()<<"\n";
p.homothetie(2);
cout<<"apres homothétie\n";
cout << "abscisse : "<<p.get_abscisse()<<"\n";
cout << "ordonnee : "<<p.get_ordonnee()<<"\n";
p.rotation(50);
cout <<"apres rotation\n";
cout << "abscisse : "<<p.get_abscisse()<<"\n";
cout << "ordonnee : "<<p.get_ordonnee()<<"\n";
cout << "module "<<p.rho()<<"\n";
cout << "argument"<<p.theta()<<"\n";*/
}