Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- void dha()
- {
- int a,b;
- printf("\t\t\t\t\tChoose Hospital Type: \n\n\t\t\t\t\t1.Govt.Hospital\n\t\t\t\t\t2.Privet Hospital\n\n");
- printf("\t\t\t\t\t");
- scanf("%d",&a);
- if(a==1){
- printf("\t\t\t\t\tDHAKA MEDICAL COLLEGE HOSPITAL,DHAKA\n\n \t\t\t\t\tLocation : DHAKA- 1100,Bangladesh\n \t\t\t\t\tPhone : 02 55165001\n \t\t\t\t\tFax : 02 55165006\n \t\t\t\t\tEmail : principal@dmc.gov.bd, dmc_principal@yahoo.com\n");
- }
- printf("\n\n\t\t\t\t\tpress 1 for continue\n\t\t\t\t\tenter -1 for exit\n\t\t\t\t\t");
- scanf("%d",&b);
- if(b==1)user();
- if(b==-1)define();
- }
- void raj()
- {
- int a,b;
- printf("\t\t\t\t\tChoose Hospital Type: \n\n\t\t\t\t\t1.Govt.Hospital\n\t\t\t\t\t2.Privet Hospital\n\n");
- printf("\t\t\t\t\t");
- scanf("%d",&a);
- if(a==1)
- {
- printf("\t\t\t\t\tRAJSHAHI MEDICAL COLLEGE HOSPITAL,RAJSHAHI\n\n\t\t\t\t\tLocation : Medical College Road, Laxmipur Rajpara, Rajshahi-6100\n\t\t\t\t\tTel : 0721-772150\n\t\t\t\t\tFax : 0721-772174\n\t\t\t\t\tEmail : principalrajshahi@yahoo.com\n\t\t\t\t\tFacebook : facebook.com/rmc\n\t\t\t\t\tTwitter : twitter.com/rmc\n");
- }
- printf("\n\n\t\t\t\t\tpress 1 for continue\n\t\t\t\t\tenter -1 for exit\n\t\t\t\t\t");
- scanf("%d",&b);
- if(b==1)user();
- if(b==-1)define();
- }
- void rang()
- {
- int a;
- printf("\t\t\t\t\tChoose Hospital Type: \n\n\t\t\t\t\t1.Govt.Hospital\n\t\t\t\t\t2.Privet Hospital\n\n");
- scanf("%d",&a);
- }
- void mymn()
- {
- int a;
- printf("\t\t\t\t\tChoose Hospital Type: \n\n\t\t\t\t\t1.Govt.Hospital\n\t\t\t\t\t2.Privet Hospital\n\n");
- scanf("%d",&a);
- }
- void syl()
- {
- int a;
- printf("\t\t\t\t\tChoose Hospital Type: \n\n\t\t\t\t\t1.Govt.Hospital\n\t\t\t\t\t2.Privet Hospital\n\n");
- scanf("%d",&a);
- }
- void khu()
- {
- int a,b;
- printf("\t\t\t\t\tChoose Hospital Type: \n\n\t\t\t\t\t1.Govt.Hospital\n\t\t\t\t\t2.Privet Hospital\n\n");
- scanf("%d",&a);
- if(a==1)
- {
- printf("\n\n\t\t\t\t\t Khulna Medical College\n\nLocation: Boyra Main Road, Khulna.\n\t\t\t\t\ttel: +88-041-760350\n\t\t\t\t\t email: kmc@ac.dghs.gov.bd, kmc.khulna@gmail.com\n");
- }
- printf("\n\n\t\t\t\t\tpress 1 for continue\n\t\t\t\t\tenter -1 for exit\n\t\t\t\t\t");
- scanf("%d",&b);
- if(b==1)user();
- if(b==-1)define();
- }
- void bar()
- {
- int a,b;
- printf("\t\t\t\t\tChoose Hospital Type: \n\n\t\t\t\t\t1.Govt.Hospital\n\t\t\t\t\t2.Privet Hospital\n\n");
- printf("\t\t\t\t\t");
- scanf("%d",&a);
- if(a==1)
- {
- printf("\t\t\t\t\tSHER-E-BANGLA MEDICAL COLLEGE HOSPITAL,BARISHAL\n\n\t\t\t\t\tLocation : South Alekanda, Band Road, Barisal (8200), Bangladesh.\n\t\t\t\t\tOrg Code : 10001978\n\t\t\t\t\tTel : 0431-2173547\n\t\t\t\t\tFax : 880-0431-61607\n\t\t\t\t\tMobile : 01721329779,01750836883\n\t\t\t\t\tEmail : sbmc@ac.dghs.gov.bd\n");
- }
- printf("\n\n\t\t\t\t\tpress 1 for continue\n\t\t\t\t\tenter -1 for exit\n\t\t\t\t\t");
- scanf("%d",&b);
- if(b==1)user();
- if(b==-1)define();
- }
- void chi()
- {
- int a,b;
- printf("\t\t\t\t\tChoose Hospital Type: \n\n\t\t\t\t\t1.Govt.Hospital\n\t\t\t\t\t2.Privet Hospital\n\n");
- printf("\t\t\t\t\t");
- scanf("%d",&a);
- if(a==1)
- {
- printf("\n\n\t\t\t\t\tCHITTAGONG MEDICAL COLLEGE HOSPITAL\n\n \t\t\t\t\tLOCATION: 57, K.B. FAZLUL KADER ROAD,P.O- CHAWKBAZAR.CHITTAGONG, BANGLADESH.\n \t\t\t\t\tPABX: 031-616891-94\n \t\t\t\t\tINFORMATION:031-630335\n \t\t\t\t\tDirector Office: 031-630179\n \t\t\t\t\tFAX: 031-610022\n \t\t\t\t\tEmergency: 031-619761\n \t\t\t\t\tEmail : cmch@hospi.dghs.gov.bd\n");
- }
- scanf("%d",&b);
- if(b==1)user();
- if(b==-1)define();
- }
- void define()
- {
- int who,user_id=123456,pass=1357,a,b;
- printf("\n\n\t\t\t\t\tWho are you?\n\n\t\t\t\t\tPress 0 for user\n\t\t\t\t\tPress 1 for admin\n");
- printf("\t\t\t\t\t");
- scanf("%d",&who);
- if(who==0)
- {
- user();
- }
- else if(who==1)
- {
- printf("\t\t\t\t\tEnter User ID:");
- scanf("%d",&a);
- printf("\n\n\t\t\t\t\tEnter User Password:");
- scanf("%d",&b);
- if(a==user_id&&b==pass)
- {
- admin();
- }
- else
- {
- printf("\n\n\t\t\t\t\tWrong User ID or Password\n\n");
- define();
- }
- }
- }
- void user()
- {
- int a,i;
- printf("\n\n\t\t\t\t\tPress corresponding number to choose division: \n\n\t\t\t\t\t1.Dhaka\n\t\t\t\t\t2.Rajshahi\n\t\t\t\t\t3.Chittagong\n\t\t\t\t\t4.Khulna\n\t\t\t\t\t5.Barishal\n\t\t\t\t\t6.Rangpur\n\t\t\t\t\t7.Mymenshing\n\t\t\t\t\t8.Sylhet\n\n");
- for(i=0;; i++)
- {
- printf("\t\t\t\t\t");
- scanf("%d",&a);
- if(a==1)
- {
- dha();
- }
- else if(a==2)
- {
- raj();
- }
- else if(a==3)
- {
- chi();
- }
- else if(a==4)
- {
- khu();
- }
- else if(a==5)
- {
- bar();
- }
- else if(a==6)
- {
- rang();
- }
- else if(a==7)
- {
- mymn();
- }
- else if(a==8)
- {
- syl();
- }
- else if(a==-1)
- {
- define();
- }
- }
- }
- void admin()
- {
- int a,i;
- printf("\n\n\t\t\t\t\tPress corresponding number to choose your task: \n\n\t\t\t\t\t1.Insert Hospital Information.\n\t\t\t\t\t2.Delete Hospital Information.\n\n");
- for(i=0;; i++)
- {
- printf("\t\t\t\t\t");
- scanf("%d",&a);
- if(a==1)
- {
- Insert();
- }
- else if(a==2)
- {
- Delete();
- }
- else if(a==-1)
- {
- define();
- }
- }
- }
- void Insert()
- {
- printf("\t\t\t\t\tInsertion not yet ready\n\t\t\t\t\tComing Soon!!!\n\n\t\t\t\t\tFor exit from admin section enter -1\n\n");
- }
- void Delete()
- {
- printf("\t\t\t\t\tDeletion Not yet ready\n\t\t\t\t\tComing Soon!!!\n\n");
- }
- int main()
- {
- int con;
- printf("\n\n\n\t\t\t\t\tBANGLADESH HOSPITAL INFORMATION\n\n");
- printf("\n\n\t\t\t\t\tPress 1 for continue: ");
- scanf("%d",&con);
- if(con==1)
- {
- define();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement