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
Add README file.
[graphlib.git]
/
exemple.cpp
diff --git
a/exemple.cpp
b/exemple.cpp
index
87fb0ec
..
d4722e7
100644
(file)
--- a/
exemple.cpp
+++ b/
exemple.cpp
@@
-37,7
+37,7
@@
float frand()
return rand() / (float )RAND_MAX;
}
return rand() / (float )RAND_MAX;
}
-void exemple1(DrawingWindow
&
w)
+void exemple1(DrawingWindow
&
w)
{
const int cx = w.width / 2;
const int cy = w.height / 2;
{
const int cx = w.width / 2;
const int cy = w.height / 2;
@@
-52,7
+52,7
@@
void exemple1(DrawingWindow &w)
}
}
}
}
-void exemple2(DrawingWindow
&
w)
+void exemple2(DrawingWindow
&
w)
{
int width = std::min(w.width, w.height) / 2;
for (int z = 0; z <= width; z++) {
{
int width = std::min(w.width, w.height) / 2;
for (int z = 0; z <= width; z++) {
@@
-78,7
+78,7
@@
void exemple2(DrawingWindow &w)
}
}
}
}
-void exemple3(DrawingWindow
&
w)
+void exemple3(DrawingWindow
&
w)
{
while (1) {
int x1 = rand() % w.width;
{
while (1) {
int x1 = rand() % w.width;