lundi 8 février 2016

Nested if-else structure loop return the beginning [on hold]

I have a nested if else structure and following these code. Loop is created more if else structure and if func2 is false return the func1, or if func3 is false return the func2.

I want to pass up nested if-else structure when the func return false value. I dont want to loop like while and I dont want to go to and label.

int main(){

ret_value_func1=func1();


if(ret_value_func1){
     ....statement...

    ret_value_func2 = func2();
    if(ret_value_func2){
        ...........statement......

        ret_value_func3 = func3(); 
        if(ret_value_func3){
         ...........statement......

        }
    }     
}
}

Aucun commentaire:

Enregistrer un commentaire