Saturday, 29 October 2016

Hospital management system C++

Hospital management system C++ code: #include "stdafx.h" #include<conio.h> #include<string.h> #include<stdlib.h> #include <iostream> using namespace std; // define maximum number of patients in a queue #define MAXPATIENTS 100 // define structure for patient data struct patient { char FirstName[50]; char LastName[50]; char ID[20]; }; // define class for queue class queue { public: queue...

Calculator example C++

Calculator example C++ code: #include<iostream> using namespace std; class calculater { public: int n1, n2, ans; public: void plus(); void sub(); void devide(); void multiply(); void wtite(); void read(); void square(); void prime(); }; void calculater::plus() { system("cls"); cout << "\t\t Addition" << endl; cout << "\t\t ........" << endl; cout <<...