Website Summary Files Commits Branches @commit @diff @stats
path: root / Week02 / Exercise02 / temperature.h
blob: 799313f5c5e89d7970b031ba4fdf81b1c25be04e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _TEMPERATURE
#define _TEMPERATURE

struct Temperature {
	double C;
	double F;
	double K;

	void fromCelsius(double C);
	void fromFahrenheit(double F);
	void fromKelvin(double K);

	Temperature Sum(const Temperature& other);
};

#endif