Example
int
main(
int
argc,
char
* argv[])
{
if
(
argc
== 2){
goto
END;
}
cout <<
"argc was not 2.. "
;
END: cout <<
"done"
;
return
0;
}
Solution
Avoid the use of goto statements.
int
main(
int
argc,
char
* argv[])
{
if
(
argc
== 2){
cout <<
"done"
;
}
else
{
cout <<
"argc was not 2.. "
;
}
return
0;
}