![](/media/cache/profiles/ba5be68d3d541f2ca043d77fc54fe702.jpg.50x50_q85.jpg)
3rd Repo, trying to figure this out.
Fork of SOFT253_Template_Weather_OS_54 by
Measure/Measure.cpp@82:668b51a39148, 2017-05-11 (annotated)
- Committer:
- aburch1
- Date:
- Thu May 11 15:53:15 2017 +0000
- Revision:
- 82:668b51a39148
- Parent:
- 81:996c0a3319b4
- Child:
- 83:0d3572a8a851
Added formatting to messages, errors now terminate the program and wait for user input to restart
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
FairyMental | 40:ba083993b481 | 1 | #include "Measure.h" |
Netaphous | 65:3723d2729b68 | 2 | |
FairyMental | 68:d3765f93c16a | 3 | //Constructor taking 3 parameters |
aburch1 | 82:668b51a39148 | 4 | Measure::Measure(float f, float h, float p) { |
FairyMental | 40:ba083993b481 | 5 | temperature = f; |
FairyMental | 40:ba083993b481 | 6 | humidity = h; |
FairyMental | 40:ba083993b481 | 7 | pressure = p; |
FairyMental | 40:ba083993b481 | 8 | } |
FairyMental | 68:d3765f93c16a | 9 | // Empty / default constructor |
FairyMental | 40:ba083993b481 | 10 | Measure::Measure() |
FairyMental | 40:ba083993b481 | 11 | { |
FairyMental | 40:ba083993b481 | 12 | temperature = 0; |
FairyMental | 40:ba083993b481 | 13 | humidity = 0; |
FairyMental | 40:ba083993b481 | 14 | pressure = 0; |
FairyMental | 40:ba083993b481 | 15 | } |
FairyMental | 68:d3765f93c16a | 16 | // Constructor taking 4 paramters, in cluding a LocalDate |
aburch1 | 82:668b51a39148 | 17 | Measure::Measure(LocalDate d,float f, float h, float p) |
FairyMental | 46:0de1f3c7d118 | 18 | { |
FairyMental | 46:0de1f3c7d118 | 19 | date = d; |
FairyMental | 46:0de1f3c7d118 | 20 | temperature = f; |
FairyMental | 46:0de1f3c7d118 | 21 | humidity = h; |
FairyMental | 46:0de1f3c7d118 | 22 | pressure = p; |
FairyMental | 46:0de1f3c7d118 | 23 | } |