#include "float.h"
Float::Class_name = "Float"; // Set the global name (once-only)
int
main(int argc, char** argv)
{
Float a = 5; // Creates a Float type with value 5
Float b = 8; // Creates a Float type with value 8
Float c = a+b ; // Add a + b and store in c.
cout << c; // Prints result to standard output.
if (is_zero(c)) // Test for zero
cout << "Result is 0\n";
}
1.0