Page 483 - Advanced Mine Ventilation
P. 483
452 Appendix C: Ventilation Network Analyzer in Cþþ With Input and Output
else
{
q[k] ¼ q[k]þdd[i];
}
}
}
}
void toApproximateFanCharacteristics()
{
bool flag ¼ false;
if(nf > 0)
{
for(int l¼1; l<¼nf; lþþ)
{
jj ¼ l þ nfixb;
cout << "ynInput np and key values : " << endl;
cin >> np >> key;
cout << endl << setw(10) << "FAN" << setw(10) <<
"J1" << setw(10) << "J2" << setw(10) << "KEY" << endl;
cout << setw(10) << l << setw(10) << jj1[jj] <<
setw(10) << j2[jj] << setw(10) << key << endl;
if(key <¼ 0)
{
cout << "ynInput " << np << " values for x and fx : " << endl;
for(int i¼1; i<¼np; iþþ)
{
cin >> x[i] >> fx[i];
}
cout << endl << setw(10) << "POINT" << setw(10) <<
"X" << setw(10) << "FX" << endl;
for(int i¼1; i<¼np; iþþ)
{
cout << setw(10) << i << setw(10) << x[i] <<
setw(10) << fx[i] << endl;
}
x[np];
dd[jj] ¼

