Update of /cvsroot/boost-sandbox/boost-sandbox/libs/units/example
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20960/example
Modified Files:
unit_example_22.cpp
Log Message:
minor update
Index: unit_example_22.cpp
===================================================================
RCS file: /cvsroot/boost-sandbox/boost-sandbox/libs/units/example/unit_example_22.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- unit_example_22.cpp 2 Apr 2007 21:28:40 -0000 1.3
+++ unit_example_22.cpp 2 Apr 2007 23:26:06 -0000 1.4
@@ -219,23 +219,32 @@
int main()
{
- quantity<SI::temperature> KTR(273.16*SI::kelvin);
- quantity<SI::temperature,absolute<> > KTA(absolute<>(273.16)*SI::kelvin);
+// quantity<SI::temperature> KTR(273.16*SI::kelvin);
+// quantity<SI::temperature,absolute<> > KTA(absolute<>(273.16)*SI::kelvin);
+//
+// quantity<celsius::temperature> CTR(0.0*celsius::degrees);
+// quantity<celsius::temperature,absolute<> > CTA(absolute<>(0.0)*celsius::degrees);
+//
+// quantity<fahrenheit::temperature> FTR(32.0*fahrenheit::degrees);
+// quantity<fahrenheit::temperature,absolute<> > FTA(absolute<>(32.0)*fahrenheit::degrees);
+
+ quantity<SI::temperature> KTR(373.16*SI::kelvin);
+ quantity<SI::temperature,absolute<> > KTA(absolute<>(373.16)*SI::kelvin);
+
+ quantity<celsius::temperature> CTR(100.0*celsius::degrees);
+ quantity<celsius::temperature,absolute<> > CTA(absolute<>(100.0)*celsius::degrees);
+
+ quantity<fahrenheit::temperature> FTR(212.0*fahrenheit::degrees);
+ quantity<fahrenheit::temperature,absolute<> > FTA(absolute<>(212.0)*fahrenheit::degrees);
std::cout << KTR << std::endl
<< KTA << std::endl
<< std::endl;
-
- quantity<celsius::temperature> CTR(0.0*celsius::degrees);
- quantity<celsius::temperature,absolute<> > CTA(absolute<>(0.0)*celsius::degrees);
std::cout << CTR << std::endl
<< CTA << std::endl
<< std::endl;
- quantity<fahrenheit::temperature> FTR(32.0*fahrenheit::degrees);
- quantity<fahrenheit::temperature,absolute<> > FTA(absolute<>(32.0)*fahrenheit::degrees);
-
std::cout << FTR << std::endl
<< FTA << std::endl
<< std::endl;
|