//cout << "RPM = " << RPM << '\n';
//cout << "angular_velocity_SI = " << angular_velocity_SI << '\n';
- prop_power_consumed_SI = Cp * rho_air * pow(FGProp1_RPS,3.0) * pow(prop_diameter,5.0);
+ prop_power_consumed_SI = Cp * rho_air * pow(FGProp1_RPS,3.0f) * pow(float(prop_diameter),5.0f);
//cout << "prop HP consumed = " << prop_power_consumed_SI / 745.699 << '\n';
if(angular_velocity_SI == 0)
prop_torque = 0;
}
cout << endl;
}
- cout.setf(0, ios::floatfield); // reset
+ cout.setf((ios_base::fmtflags)0, ios::floatfield); // reset
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#if !defined (SG_HAVE_NATIVE_SGI_COMPILERS)
SG_USING_STD(iostream);
#endif
-#if defined ( macintosh ) || defined ( _MSC_VER )
SG_USING_STD(ofstream);
-#endif
typedef stack :: iterator LIST;
while ( ! in.eof() ) {
#endif
-#if defined( macintosh ) || defined( _MSC_VER )
in >> ::skipws;
-#else
- in >> skipws;
-#endif
if ( in.get( c ) && c == '#' ) {
// process a comment line
// read all subsequent numbers until next thing isn't a number
while ( true ) {
-#if defined( macintosh ) || defined( _MSC_VER )
in >> ::skipws;
-#else
- in >> skipws;
-#endif
char c;
in.get(c);
// eat white space before start of while loop so if we are
// done with useful input it is noticed before hand.
-#if defined( macintosh ) || defined( _MSC_VER )
in >> ::skipws;
-#else
- in >> skipws;
-#endif
}
}