void result() { char ch; int rno; cleardevice(); start(); settextstyle(TRIPLEX_FONT,HORIZ_DIR,4); setcolor(LIGHTBLUE); outtextxy(25,40," RESULT MENU "); setcolor(YELLOW); settextstyle(TRIPLEX_FONT,HORIZ_DIR,4); outtextxy(60,150,"1)CLASS RESULT"); outtextxy(60,210,"2)STUDENT REPORT CARD"); outtextxy(60,270,"3)BACK TO MAIN MENU"); switch(getch()) { case '1' :class_result(); break; case '2' :cout<<"\n\n\tEnter Roll Number Of Student : "; cin>>rno; display_sp(rno); break; case '3' :break; default :cout<<"\a"; } }
void result() { int choice; int rno; cout<<"\n\n\n\t\tRESULT MENU"; cout<<"\n\n\t01.Class Result "; cout<<"\n\n\t02.Student Report Card"; cout<<"\n\n\t03.RETURN TO MAIN MENU"; cout<<"\n\n\nEnter choice(1/2/3)"; cin>>choice; clrscr(); switch(choice) { case 1:class_result();break; case 2:cout<<"\n\nEnter Roll No. of Student "; cin>>rno; display(rno); break; case 3:break; default:cout<<"\a"; } }