-
Notifications
You must be signed in to change notification settings - Fork 0
/
Backmenu.h
28 lines (26 loc) · 860 Bytes
/
Backmenu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* Project Name: Student Assistant
Developed By: Jameur Rahman Fida
Contact: [email protected]
fb.me/fida97
github.com/fida97 */
/* A simple and short Custom made header file for back to main menu from anywhere.
You just need to call the mainmenu(); function and this take you to the main(); function.
You can add this header file on your IDE like me.
Because this function helps a lot when you start making a project. */
void mainmenu()
{
int mn;
printf("\n\n\Press 0 To Go Back Main Menu: ");
scanf("%d",&mn);
if (mn==0)
{
system ("cls");
main();
}
else
{
system ("cls");
printf("\n Wrong Input");
mainmenu();
}
}