Dastur listingi
//---------------------------------------------------------------------------
#include
#include
#pragma hdrstop
#include
//---------------------------------------------------------------------------
#pragma argsused
// Issiqlik almashinish jarayoni dasturi
// optimal harorat 80
//оptimal sarf 300 кг/м3
int main(int argc, char* argv[])
{
int Qs,Fs, n;
int Q,F,Q0,Fmax,Fmin,k;
int Q1[25]; int F1[200]; int Qb[75]; int Fb[300];
//оптимал чегаралар
Q0=25;
Fmax=300;
Fmin=100;
cout<<"n=";
cin>>n;
for(int i=1; i<=n; i++ ) {
cout<<"Q["<
cin>>q1[i];
}
for(int i=1; i<=n; i++){
cout<<"F["<
cin>>f1[i];
}
for(k=1; k<=1000; k++){
if(Q>Q0){
Qs=Q- Q0;
cout<<" IM ga kelayotgan signal"<
cout<<"IM haroratni<<" ga kamaytiradi"<
}
else { Qs= Q0-Q;
cout<<" IM ga kelayotgan signal"<
cout<<"IM bosimni"<
ga oshiradi";
}
Sleep(3000);
}
cout<
return 0;
}
//---------------------------------------------------------------------------
Dostları ilə paylaş: |