?? _fpreset.c
字號:
#include <stdio.h>
#include <float.h>
char *status[2] = { "No", " " };
void main()
{
unsigned int fp_status;
fp_status = _status87();
printf( "80x87 status\n" );
printf( "%s invalid operation\n",
status[ (fp_status & SW_INVALID) == 0 ] );
printf( "%s denormalized operand\n",
status[ (fp_status & SW_DENORMAL) == 0 ] );
printf( "%s divide by zero\n",
status[ (fp_status & SW_ZERODIVIDE) == 0 ] );
printf( "%s overflow\n",
status[ (fp_status & SW_OVERFLOW) == 0 ] );
printf( "%s underflow\n",
status[ (fp_status & SW_UNDERFLOW) == 0 ] );
printf( "%s inexact result\n",
status[ (fp_status & SW_INEXACT) == 0 ] );
_fpreset();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -