when i have goto master, should the _menu() not be executed again. what is happening is that the function is not being executed and the switch is executing the next case in the list. help me out please.
Code:/*Main----------------------------------*/ /*--------------------------------------*/ int main() { top: /*validate master user*/ if(_validate_master(_menu())!=1) { goto top; }else{ master: switch (_master_menu()){ case 1: if(_newaccount()!=0){goto master;} /*if insert unsuccessful goto master main*/ case 2: if(_cust_cntrl()!=0){goto master;} // case 3: default: goto master; } } return 0; } /*--------------------------------------*/



LinkBack URL
About LinkBacks


