GNU nano 2.2.6 File: main.cpp
#include "audio.h"
#include <iostream>
using namespace std;
int main()
{
int answer;
int theLoop = 1;
while(theLoop = 1)
{
//cout << "Do you want to enter a patient? 1 for yes. 2 for no. " << "\n";
//cin >> yesNo;
//if(yesNo == 1)
string firstName, lastName, dob;
cout << "Enter patient last name: ";
cin >> lastName;
cout << "\n";
cout << "Enter patient first name: ";
cin >> firstName;
cout << "\n";
cout << "Enter patient's date of birth: ";
cin >> dob;
cout << "\n";
Audio patient(firstName, lastName, dob);
cout << "You've created a patient: " << patient.Get_fName();
cout << " " << patient.Get_lName();
cout << " " << patient.Get_dob() << "\n";
cout << "Decibels at 2000 Hz in right ear? ";
cout << "Do you want to enter a patient? 1 for yes. 2 for no. ";
cin >> answer;
if(answer==1)
continue;
else
break;
}
cout << "exited the while loop" << "\n";
return 0;
}
#include "audio.h"
#include <iostream>
using namespace std;
int main()
{
int answer;
int theLoop = 1;
while(theLoop = 1)
{
//cout << "Do you want to enter a patient? 1 for yes. 2 for no. " << "\n";
//cin >> yesNo;
//if(yesNo == 1)
string firstName, lastName, dob;
cout << "Enter patient last name: ";
cin >> lastName;
cout << "\n";
cout << "Enter patient first name: ";
cin >> firstName;
cout << "\n";
cout << "Enter patient's date of birth: ";
cin >> dob;
cout << "\n";
Audio patient(firstName, lastName, dob);
cout << "You've created a patient: " << patient.Get_fName();
cout << " " << patient.Get_lName();
cout << " " << patient.Get_dob() << "\n";
cout << "Decibels at 2000 Hz in right ear? ";
cout << "Do you want to enter a patient? 1 for yes. 2 for no. ";
cin >> answer;
if(answer==1)
continue;
else
break;
}
cout << "exited the while loop" << "\n";
return 0;
}