X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/graphlib.git/blobdiff_plain/c2c87c26aa3bca105c42a43e1289e5708e79f175..7e44377ed59d10dcf9f04ff898691b99d5f8a1c8:/test/hello.cpp diff --git a/test/hello.cpp b/test/hello.cpp index cf598aa..8c1585c 100644 --- a/test/hello.cpp +++ b/test/hello.cpp @@ -26,7 +26,7 @@ #include -int flip(DrawingWindow &w) +void flip(DrawingWindow &w) { std::cout << "[ " << w.width() << " x " << w.height() << " ]\n"; @@ -50,10 +50,9 @@ int flip(DrawingWindow &w) // << y << " (" << c << ")\n"; } } - return 0; } -int mandel(DrawingWindow &w) +void mandel(DrawingWindow &w) { /* paramètres par défaut */ int larg = w.width(); @@ -116,10 +115,9 @@ int mandel(DrawingWindow &w) } cr += pr; } - return 0; } -int lines(DrawingWindow &w) +void lines(DrawingWindow &w) { int n = 100000; int xmax = w.width(); @@ -135,7 +133,6 @@ int lines(DrawingWindow &w) w.setColor(r, g, b); w.drawLine(x1, y1, x2, y2); } - return 0; } int main(int argc, char *argv[])