// File: decdriv.hpp // Description: Demo driver for Decimal class // Project: - // Version: 1.00 // Revision: A // Content: Using of Decimal class // // // Language: C++ // OS: MS-DOS // Date: 04.04.1997 // Author: pf // Mail: fabo@fmph.uniba.sk // Phone: 00421 7 65429248 #include #include #include #include #include "decimal.hpp" void main() { // creating decimal numbers Decimal x=-0.1501000; Decimal y=-0.0401; Decimal u= 1234; Decimal v=-9991; Decimal q="7865.234"; Decimal w="-5678"; Decimal z= 0.0; Decimal r=-0.0; Decimal s="0.0"; cout<<"x="<>x; cout< Decimal float a=3.14; Decimal b=x; cout<< a <<" + "<< b <<" = "<< (a+b) <