|Hello everyone this is my programme and I wanna ask you... what I have to write in "int main" to get 1.room list 2.every room temperature, humidity and heat index 3.and how to increase or decrease every parameter
int GautiF (int Celsijus); //get Fahrenheit
int GautiC (int Farenheitai); //get Celsius
void GautiTemperatura(int & t);
void KarscioIndeksas(float Temperatura, float Dregme);//funkcija atlikti KI formule
void inputOras(float Temperatura, float Dregme); //inputWeather // funkcija duomenis gauti is vartotojo
bool moreTemp(); //Vartotojas gali paklausti, ar nori keisti temperatura
void TemperaturosTipas(); // F or C temperature type
class Ligonine //clinic
{
private:
int PK;
Klinikos *Patalpos;
public:
Ligonine ()
{
PK = 6; //Patalpu Kiekis //number of rooms
Patalpos = new Klinikos[PK];
int main ()
{
int Temperatura = 0;
double Dregme = 0;
double KarscioIndeksas;
double Celsijus;
double Farenheitai;
GautiTemperatura(Temperatura); // get temperature
///this function prints the details of all rooms stored in an array
void print_list (klinokos array [], int size)
{
for (int i=0; i <size; i++)
{
cout <<"\n\nRoom "<<i+1 <<endl;
cout <<" Room name :" <<array [i].Patalpos <<endl;
cout <<" Room temperatute :" <<array [i].Temperatura <<endl;
cout <<" Room humidity :" <<array [i].Dregem <<endl;
cout <<" Room heatindex : " <<array [i].karscioindeksas <<endl;
}
}
int main ()
{
klinikos my_rooms[10];
///add their names and other parameters
print_list (my_rooms, 10);
///other stuff here
}
Please Note;)
Always use code tags whenever you want to post some code, that way your code will be easy to read
[Syntax highlighting, line numbering] and alot of people here will be ready to help -