Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
cbfd0bb4
Commit
cbfd0bb4
authored
May 15, 2021
by
Luning Yang
Browse files
Update voisinage.cpp
parent
3d6ae910
Changes
1
Hide whitespace changes
Inline
Side-by-side
Voisinage/voisinage.cpp
View file @
cbfd0bb4
...
...
@@ -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
"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment