Running /home/ubuntu/workspace/lab9/lab99.cpp
/home/ubuntu/workspace/lab9/lab99.cpp: In constructor ‘TemperatureConverter::TemperatureConverter()’:
/home/ubuntu/workspace/lab9/lab99.cpp:18:25: error: expected primary-expression before ‘(’ token
TemperatureConverter(double x); {
^
/home/ubuntu/workspace/lab9/lab99.cpp:18:26: error: expected primary-expression before ‘double’
TemperatureConverter(double x); {
^
/home/ubuntu/workspace/lab9/lab99.cpp:19:18: error: ‘x’ was not declared in this scope
Kelvin = x;
^
/home/ubuntu/workspace/lab9/lab99.cpp: At global scope:
/home/ubuntu/workspace/lab9/lab99.cpp:48:1: error: ‘Temperature’ does not name a type
Temperature::Temperature() {
^
/home/ubuntu/workspace/lab9/lab99.cpp: In function ‘double GetTempAsCelsius()’:
/home/ubuntu/workspace/lab9/lab99.cpp:57:12: error: ‘KelvinTemperature’ was not declared in this scope
return KelvinTemperature - 273.15;
^
/home/ubuntu/workspace/lab9/lab99.cpp: In function ‘double GetTempAsFahrenheit()’:
/home/ubuntu/workspace/lab9/lab99.cpp:63:15: error: ‘Kelvin’ was not declared in this scope
return (((Kelvin*9)/5 + 32)-273.15);
^
/home/ubuntu/workspace/lab9/lab99.cpp: In function ‘double GetTempFromKelvin()’:
/home/ubuntu/workspace/lab9/lab99.cpp:69:12: error: ‘Kelvin’ was not declared in this scope
return Kelvin;
^
/home/ubuntu/workspace/lab9/lab99.cpp: At global scope:
/home/ubuntu/workspace/lab9/lab99.cpp:76:1: error: expected initializer before ‘void’
void setTempFahrenheit(double temp) {
^