Beruflich Dokumente
Kultur Dokumente
Code:
Client Side:
#include <stdio.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <string.h>
#include<math.h>
#include <arpa/inet.h>
#include<unistd.h>
#include<iostream>
#include<bits/stdc++.h>
while8true {
string patient_name, department_to_visit, patient_sex, patient_age,
patient_status;
cout<<"\nPlease enter the iollowing patient details 8or to exit:\n";
cout<<"\nName: "; getline8cin, patient_name ;
cout<<"\nAge: "; getline8cin, patient_age ;
cout<<"\nSex:"; getline8cin, patient_sex ;
cout<<"\nDepartment to visit: "; getline8cin, department_to_visit ;
Server Side:
#include <unistd.h>
#include <stdio.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <string.h>
#include<math.h>
#include <arpa/inet.h>
#include<iostream>
#include<bits/stdc++.h>
void init_db8 {
departments[0].name a "ENT ";
departments[0].doctor[0].name a "Dr. Khana";
departments[0].doctor[0].avialable a true;
departments[0].doctor[1].name a "Dr. Sharma";
departments[0].doctor[1].avialable a true;
departments[1].name a "A&E";
departments[1].doctor[0].name a "Dr. Kumar";
departments[1].doctor[0].avialable a true;
departments[1].doctor[1].name a "Dr. Singh";
departments[1].doctor[1].avialable a true;
}