Commit cbfd0bb4 authored by Luning Yang's avatar Luning Yang
Browse files

Update voisinage.cpp

parent 3d6ae910
......@@ -2,17 +2,10 @@
#include<math.h>
void Voisinage::setr(unsigned int rayon){
rayon = -1;
while (rayon< 0){
printf("Entrez le ratonde voisinage (0 pour le voisinage arbitraire):\n ");
scanf("%d", &rayon);
if(rayon >= 0){
r = rayon;
}
else printf("Rayon incorrect !\n");
if(rayon >= 0){
r = rayon;
}
else throw ("Rayon incorrect !\n");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment