J'ai ce genre de code:C# continuer/goto requête de base
main()
{
for(i=0;i<100;i++)
{
if(cond1)
func(1); //Just some logics are present here
if (cond2)
if(cond3 | cond4)
func(2);
and so on....
}
}
void func(int)
{
do somthing;
if cond5
continue;// this is for the FOR loop in main() & I know this doesnt make sense.
}
Ainsi, selon une condition IF dans la fonction « func », je veux « continuer » FOR actuelle boucle principale (). Comment y parvenir? Merci d'avance ...
Bonne réponse mais vous aurait pu ajouter un texte sur la façon dont vous avez changé (amélioré) la programflow. –
Merci pour le conseil. – Oleg