home *** CD-ROM | disk | FTP | other *** search
- // fpmul.cpp -- Multiply two values from DOS command line
-
- #include <iostream.h>
- #include <stdlib.h>
-
- main(int argc, char *argv[])
- {
- if (argc != 3) {
- cout << "Enter two floating point values.\n";
- cout << "ex. fpmul 3.14159 2.5\n";
- exit(0);
- } else
- cout << atof(argv[1]) * atof(argv[2]);
- }
-
-
- // Copyright (c) 1990 by Tom Swan. All rights reserved
- // Revision 1.00 Date: 12/05/1990 Time: 09:19 am
-
- // Revision 1.01 Date: 07/08/1991 Time: 05:41 pm
- // Converted for Borland C++ 2.0
-
-