A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
graphlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Made *sleep() methods static.
[graphlib.git]
/
test
/
hello.cpp
diff --git
a/test/hello.cpp
b/test/hello.cpp
index
f8afa0d
..
ae6c0f3
100644
(file)
--- a/
test/hello.cpp
+++ b/
test/hello.cpp
@@
-2,14
+2,14
@@
* Pour compiler
* =============
*
* Pour compiler
* =============
*
- * 1. Cr
é
er le fichier hello.pro :
+ * 1. Cr
é
er le fichier hello.pro :
* +------------------------------------------------------------+
* |TARGET = hello |
* |CONFIG += qt debug |
* |SOURCES += hello.cc |
* +------------------------------------------------------------+
*
* +------------------------------------------------------------+
* |TARGET = hello |
* |CONFIG += qt debug |
* |SOURCES += hello.cc |
* +------------------------------------------------------------+
*
- * 2. Cr
é
er le fichier Makefile avec la commande :
+ * 2. Cr
é
er le fichier Makefile avec la commande :
* $ qmake -makefile hello.pro
* ou tout simplement :
* $ qmake -makefile
* $ qmake -makefile hello.pro
* ou tout simplement :
* $ qmake -makefile
@@
-50,7
+50,7
@@
void flip(DrawingWindow &w)
void mandel(DrawingWindow &w)
{
void mandel(DrawingWindow &w)
{
- /* param
ètres par dé
faut */
+ /* param
ètres par dé
faut */
int larg = w.width;
int haut = w.height;
float Rmin = -2.05;
int larg = w.width;
int haut = w.height;
float Rmin = -2.05;
@@
-60,7
+60,7
@@
void mandel(DrawingWindow &w)
int maxiter = 100;
int maxiter = 100;
- int x, y; /* le pixel consid
éré
*/
+ int x, y; /* le pixel consid
éré
*/
float cr, ci; /* le complexe correspondant */
float zr, zi; /* pour calculer la suite */
float zr2, zi2;
float cr, ci; /* le complexe correspondant */
float zr, zi; /* pour calculer la suite */
float zr2, zi2;
@@
-89,7
+89,7
@@
void mandel(DrawingWindow &w)
zi = 2*zr*zi + ci;
zr = zr2 - zi2 + cr;
}
zi = 2*zr*zi + ci;
zr = zr2 - zi2 + cr;
}
- /* on est sorti trop t
ô
t du for(...):
+ /* on est sorti trop t
ô
t du for(...):
on affiche le pixel d'un couleur en fonction
de i */
if (i <= maxiter / 2) {
on affiche le pixel d'un couleur en fonction
de i */
if (i <= maxiter / 2) {