Hospital Management System in CI utilized file-related functions like fopen, fread, fwrite, etc. to handle files in C as the foundation for this program. The "Hospital Management System Project" is password-protected, which is good since it ensures that only authorized users may access this program. I divided the program into distinct functions to make it easier to read. Each project function makes considerable use of the file handling function, making it a fantastic project to learn file handling in C. Program BreakdownAbove code is the structure of the record. Above is the function in our hospital management. The above code will provide the interface of the system. The above code will use to add the data in the system. To view the details of the patient the above code will help. The above code will help in edit the record. The above code will help in search a record. The above code will use to delete a record in the system. The above code will read the file. The above code will use to write in the file. Program for Hospital Management System in COutput: Simple Hospital Management System * * * * * * * * * * * * * * * * Enter your choice * * 1. Add Information 2. View Information 3. Search 4. Edit Information 5. Delete Information 6. Exit Option=1 Already data inputed on the database =4 How many entry do you want to add= 2 Enter patient's Name = Ravi Enter disease = Typhoid Enter the age = 34 Enter cabin no = 12 Enter phone number = 4356432466 Enter patient's Name = Sumantra Enter disease = Dengue Enter the age = 32 Enter cabin no = 13 Enter phone number = 8767895686 * * Enter your choice * * 1. Add Information 2. View Information 3. Search 4. Edit Information 5. Delete Information 6. Exit Option=3 By what do you want to search ? 1.Serial no. 2.Name 3.Disease 4.Cabin no. 5.Phone no. 6.Age Option = 2 Enter your name=Ravi Serial Number=4 Name = Ravi Disease = Typhoid Cabin no = 12 Phone number = 061465170 Age = 34 **Enter your choice** 1. Add Information 2. View Information 3. Search 4. Edit Information 5. Delete Information 6. Exit Option= 4 What do you want to edit ? Enter your option 1.Name 2.Disease 3.Age 4.Cabin 5.Phone no. Option=3 Enter the serial no of that patient= (0 - 5)=1 Enter the new Age=35 * * Enter your choice * * 1. Add Information 2. View Information 3. Search 4. Edit Information 5. Delete Information 6. Exit Option=4 What do you want to edit ? Enter your option 1.Name 2.Disease 3.Age 4.Cabin 5.Phone no. Option=1 Enter the serial no of that patient= (0 - 5)=1 Enter the new name=Ravi Tiwari * * Enter your choice * * 1. Add Information 2. View Information 3. Search 4. Edit Information 5. Delete Information 6. Exit Option= 3 By what do you want to search ? 1.Serial no. 2.Name 3.Disease 4.Cabin no. 5.Phone no. 6.Age Option = 2 Enter your name=Ravi Tiwari Serial Number=1 Name = Ravi Tiwari Disease = Fever Cabin no = 2 Phone number = 01657569852 Age = 35 * * Enter your choice * * 1. Add Information 2. View Information 3. Search 4. Edit Information 5. Delete Information 6. Exit Option=5 Enter the serial number of the patient that you want to delete=2 What do you want ? 1.Remove the whole record 2.Remove Name 3.Remove Disease 4.Remove age 5.Remove Cabin 6.Remove phone number Option = 4 **Enter your choice** 1. Add Information 2. View Information 3. Search 4. Edit Information 5. Delete Information 6. Exit Option= 5 Enter the serial number of the patient that you want to delete=1 What do you want ? 1.Remove the whole record 2.Remove Name 3.Remove Disease 4.Remove age 5.Remove Cabin 6.Remove phone number Option = 1 * * Enter your choice * * 1. Add Information 2. View Information 3. Search 4. Edit Information 5. Delete Information 6. Exit Option= 6 |