1 #include "pharm.h"
2 #include <iostream>
3 //pharm oject test file
4 ////
5 //
6 //using namespace std;
7 //
8
9 const string hgterror = "in99";
10 const string hgtcorrect = "99 in";
11 const char * hgtcerror = "in99";
12 const char * hgtccorrect = "99 in";
13
14
15 int main()
16 {
17 Height lhgt;
18 lhgt = hgterror;
19 cout << "\nstep 1\n";
20 cout << lhgt.hgt() << endl;
21 lhgt = hgtcorrect;
22 cout << "\nstep 2\n";
23 cout << lhgt.hgt() << endl;
24 lhgt = hgtcerror;
25 cout << "\nstep 3\n";
26 cout << lhgt.hgt() << endl;
27 lhgt = hgtccorrect;
28 cout << "\nstep 4\n";
29 cout << lhgt.hgt() << endl;
30 return 0;
31 }
32