13:05 ET Dow -154.48 at 10309.92, Nasdaq -37.61 at 2138.44, S&P -19.130 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 0 1 100001 0 1 0 1 1 0 1 0 00 0 1 1 1 0 1 100001 0 1 1 100001 13:05 ET Dow -154.48 at 10309.92, Nasdaq -37.61 at 2138.44, S&P -19.1313:05 ET Dow -154.48 at 10309.92, Nasdaq -37.61 at 2138.44, S&P -19.13

.

.

Tuesday, July 2, 2013

In Progress - C++ Audiology Program - Console Application

 HEADER FILE - audio.h
 -----------#include <iostream>
#include <string>
#ifndef AUDIO_H
#define AUDIO_H

class Audio
{
private:
 int l_8000hz;
 int l_6000hz;
 int l_4000hz;
 int l_3000hz;
 int l_2000hz;
 int l_1000hz;
 int l_500hz;
 int l_250hz;
 int r_8000hz;
 int r_6000hz;
 int r_4000hz;
 int r_3000hz;
 int r_2000hz;
 int r_1000hz;
 int r_500hz;
 int r_250hz;
 std::string patient_fName;
 std::string patient_lName;
 std::string patient_dob;


public:
 //Audio();
 Audio(std::string patient_fName, std::string patient_lName, std::string patient_dob);
 void SetAudio(std::string patient_fName, std::string patient_lName, std::string patient_dob);
 
 std::string Get_fName() { return patient_fName; }
 std::string Get_lName() { return patient_lName; }
 std::string Get_dob() { return patient_dob; }
 int Get_l_8000hz() { return l_8000hz; }
 int Get_l_6000hz() { return l_6000hz; }
 int Get_l_4000hz() { return l_4000hz; }
 int Get_l_3000hz() { return l_3000hz; }
 int Get_l_2000hz() { return l_2000hz; }
 int Get_l_1000hz() { return l_1000hz; }
 int Get_l_500hz() { return l_500hz; }
 int Get_l_250hz() { return l_250hz; }
 int Get_r_8000hz() { return r_8000hz; }
 int Get_r_6000hz() { return r_6000hz; }
 int Get_r_4000hz() { return r_4000hz; }
 int Get_r_3000hz() { return r_3000hz; }
 int Get_r_2000hz() { return r_2000hz; }
 int Get_r_1000hz() { return r_1000hz; }
 int Get_r_500hz() { return r_500hz; }
 int Get_r_250hz() { return r_250hz; }
 void Set_l_8000hz(int a){ l_8000hz =a; } 
 void Set_l_6000hz(int b) {l_6000hz = b;}  
 void Set_l_4000hz(int c){l_4000hz = c; }
 void Set_l_3000hz(int d){l_3000hz = d; }
 void Set_l_2000hz(int e){l_2000hz = e; }
 void Set_l_1000hz(int f){l_1000hz = f; }
 void Set_l_500hz(int g){l_500hz = g; }
 void Set_l_250hz(int h){l_250hz = h; }
 void Set_r_8000hz(int i){r_8000hz = i; }
 void Set_r_6000hz(int j){r_6000hz = j; }
 void Set_r_4000hz(int k){r_4000hz = k; }
 void Set_r_3000hz(int l){r_3000hz = l; }
 void Set_r_2000hz(int m){r_2000hz = m; }
 void Set_r_1000hz(int n){r_1000hz = n; }
 void Set_r_500hz(int o){r_500hz = o; }
 void Set_r_250hz(int p) {r_250hz = p; }

};

#endif
  ------------------------
  CPP FILE - audio.cpp
  ------------------------
#include "audio.h"
#include <iostream>
#include <string>

// Audio constructor
Audio::Audio(string cpatient_fName, string cpatient_lName, string cpatient_dob)
{
 cpatient_fName = patient_fName;
 cpatient_lName = patient_lName;
 cpatient_dob = patient_dob;
}

//void Audio::SetAudio(string cpatient_fName, string cpatient_lName, string cpatient_dob)
//{
// cpatient_fName = patient_fName;
// cpatient_lName = patient_lName;
// cpatient_dob = patient_dob;
//}

   -------------------------------
     MAIN FILE - theaudio.cpp
   -------------------------------
#include "audio.h"
#include <iostream>

using namespace std;

int main()
{
 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);

 return 0;

}