my view function is not working properly

hye guyz i really need ur helppp..!! i have made this view function no error showing but when i go to view function it does not let me view my details it directly go to main menu ...
void lecMenu(int ID)
{
system("cls");
int option;
cout<<"\n\t\--------STUDENT MANAGEMENT SYSTEM------------";
cout<<"\n\t\----------------------LECTURER WORK PAGE----------------------";
cout<<"\n\n\t\t1 - View details";
cout<<"\n\t\t2 - Edit a Student Marks";
cout<<"\n\t\t3 - Go Back to Main Menu";
cout<<"\n\t\t4 - Exit System";
cout<<"\n\n\t\t Please Enter your option: ";
cin>>option;
switch(option){
case 1:
viewmoduledetail(ID);

case 3:
mainmenu();
break ;
case 4:
{
cout<<"\n\n\tThis program has been designed by: "
<<"\n\n\t\tName:BUSHRA KAZMI"
<<"\n\t\tStudent Number: TP026051"
<<"\n\nFor My C++ Assignment in \n\t\tAsia Pacific University College of Technology and Innovation"
<<"\nIntake Code: UC2F1208SE "
<<"\n\n MY SINCERE THANKS GOES TO MR KAU GUAN KIAT FOR HIS PATIENCE AND EXCELLENCE IN TEACHING"
<<"\n\n"<<endl;
system("pause");
exit(0);}
break;
default:
{cout<<"\n\nWrong option inserted! Please Re Enter your option: ";
cin>>option;}
break;
}
lecMenu(ID);
}

system("cls");
bool found=true;
int i,j;
readModuleDetailsfile();
cout<<"\n\t\--------STUDENT MANAGEMENT SYSTEM------------";
cout<<"\n\t\-----------------------VIEW MODULE DETAILS----------------------------";
j= moduleF.size();
for(i=0;i <j;i++)
{
if(moduleF[i].getstudentID()==ID)
{
found=true;
cout<<"\n\n Degree ID : "<<moduleF[i].getModuleID();
cout<<"\nModule 1 : "<<moduleF[i].getMname1();
cout<<"\nExam Marks : "<<moduleF[i].getmarks1();
cout<<"\nAssignment marks : "<<moduleF[i].getass1();
cout<<"\n\Module 2 : "<<moduleF[i].getMname2();
cout<<"\nExam Marks : "<<moduleF[i].getmarks2();
cout<<"\nAssignment Marks : "<<moduleF[i].getass2();
cout<<"\nModule 3 : "<<moduleF[i].getMname3();
cout<<"\nExam Marks : "<<moduleF[i].getmarks3();
cout<<"\nAssignment Marks : "<<moduleF[i].getass3();
cout<<"\nHome Availability : ";
if(moduleF[i].getAvailability()==true)
cout<<"True"<<endl;
else
cout<<"False"<<endl;
cout<<"\n********************************************************\n";
system("pause");
}
}
if(found==false)
cout<<"\n\nWARNING: Module Details cannot be found"<<endl;
}

the prog is pretty much big to i cant post the whole prog
Topic archived. No new replies allowed.