void WeatherData::setMeasurements( float temperature, float humidity, float pressure )
{
	this->temperature=temperature;
	this->humidity=humidity;
	this->pressure=pressure;
	measurementsChanged();
}
示例#2
0
void WeatherData::setMeasurements(float temp, float hum, float pres){
    temperature = temp;
    humidity = hum;
    pressure = pres;
    measurementsChanged();
}