home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Actual 13
/
CDA13.ISO
/
cdactual
/
demobin
/
share
/
program
/
C
/
ACTLIB11.ZIP
/
CALC.ZIP
/
TEST.C
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-01-14
|
357 b
|
20 lines
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "calc.h"
void main( )
{
char string[255] ;
for (;;) { printf( "\nCalcul : " ) ;
if ( ! *gets(string) ) break ;
if ( calc(string) == HUGE_VAL ) strcpy( string , "error" ) ;
printf( "Result: %s\n" , string ) ;
}
}