Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

C±ê×¼¿âÔ´Âë½âÆÊ(12)£º¸¡µãÊý»·¾³fenv.h

     ΪÁ˱àд¸ß¾«¶È¸¡µãÊýµÄÔËË㣬±à³ÌÈËÔ±ÐèÒª¿ØÖƸ¡µãÊý»·¾³µÄ¸÷¸ö·½Ã棺½á¹ûÈçºÎÉáÈ룬¸¡µãÊý±í´ïʽÈçºÎ¼ò»¯Óë±ä»»£¬ÈçºÎ´¦Àí¸¡µãÊýÒì³££¨ÈçÏÂÒçÖ®ÀàµÄ¸¡µãÊýÒì³£ÊǺöÂÔ»¹ÊDzúÉú´íÎ󣩣¬µÈµÈ¡£C99ÒýÈëÁËfenv.hÀ´¿ØÖƸ¡µãÊý»·¾³¡£
    1¡¢fenv.h£º
¶¨ÒåÁ˸¡µãÊý»·¾³¿ØÖƺ¯Êý¡¢Òì³£¿ØÖƺ¯Êý¡¢ÉáÈ뷽ʽ¿ØÖƺ¯Êý¡¢¸¡µãÊýÒì³£ÂëºÍÉáÈ뷽ʽµÈ¡£×¢Ò⸡µãÊý»·¾³µÄʵÏÖÊÇÒÀÀµÓÚÌåϵ½á¹¹µÄ£¬ÒòΪ²»Í¬µÄÌåϵ½á¹¹Óв»Í¬µÄ¸¡µãÊýÖ¸Á¡£ÒÀÀµÓÚÌåϵ½á¹¹µÄ¶¨Òå·ÅÔÚbits/fenv.hÖУ¬ÕâÀïÊÇx86Ìåϵ½á¹¹µÄ°æ±¾(LinuxÏ£©¡£
    ±ê׼ͷÎļþfenv.hÄÚÈÝÈçÏ£º
/* ISO C99 7.6: ¸¡µãÊý»·¾³ <fenv.h> */
#ifndef _FENV_H
#define _FENV_H 1
#include <features.h>
/* »ñÈ¡ÒÀÀµÓÚÌåϵ½á¹¹µÄ¶¨Òå¡£Ó¦¸ÃÒªÓÐÏÂÃæÕâЩ¶¨Ò壺
fenv_t ±íʾ¸¡µãÊý»·¾³µÄÀàÐÍ
FE_DFL_ENV fenv_t *Ö¸ÕëÀàÐ͵ÄÖµ£¬±íʾ¸¡µãÊý»·¾³µÄȱʡֵ£¨ÓÃÓÚÐèÒªfenv_t²ÎÊýµÄº¯ÊýÖУ©
fexcept_t ±íʾ¸¡µãÊýÒì³£±êÖ¾£¨Õâ¸ö±êÖ¾±£´æÁ˸¡µãÊýµÄ״̬£©µÄÀàÐÍ
ÏÂÃæµÄºê±»¶¨Ò壬µ±ÇÒ½öµ±ÊµÏÖÖ§³ÖÕâЩºêʱ£º
FE_INEXACT ²»¾«È·µÄ½á¹û
FE_DIVBYZERO ³ýÊýΪ0
FE_UNDERFLOW ½á¹ûÏòÏÂÒç³ö
FE_OVERFLOW ½á¹ûÏòÉÏÒç³ö
FE_INVALID ÎÞЧµÄÔËËã
FE_ALL_EXCEPT ËùÓб»Ö§³ÖµÄÒì³£µÄ°´Î»»ò
ÏÂÃæÕâЩºê±»¶¨Ò壬µ±ÇÒ½öµ±ÊµÏÖÖ§³ÖijЩÊʵ±µÄÉáÈ뷽ʽʱ£º
FE_TONEAREST ×î½üÉáÈë
FE_UPWARD ÏòÕýÎÞÇî´ó(+Inf)ÉáÈë
FE_DOWNWARD Ïò¸ºÎÞÇî´ó(-Inf)ÉáÈë
FE_TOWARDZERO Ïò0ÉáÈë
*/
#include <bits/fenv.h>
__BEGIN_DECLS
/* ¸¡µãÊýÒì³£´¦Àí */
/* Çå³ýEXCEPTS±íʾµÄÒ쳣״̬ */
extern int feclearexcept (int __excepts) __THROW;
/* ½«ÊµÏÖ¶¨ÒåµÄÒì³£±êÖ¾EXCEPTS±£´æµ½FLAGPËùÖ¸µÄ¶ÔÏóÖÐ */
extern int fegetexceptflag (fexcept_t *__flagp, int __excepts) __THROW;
/* ²úÉúÓÉEXCEPTS±íʾµÄÒì³£ */
extern int feraiseexcept (int __excepts) __THROW;
/* ¸ù°ÑEXCEPTSÒì³£±êÖ¾ÉèÖÃΪFLAGPËùÖ¸¶ÔÏóÖеÄÖµ */
extern int fesetexceptflag (__const fexcept_t *__flagp, int __excepts) __THROW;
/* È·¶¨EXCEPTSָʾµÄ¸÷¸öÒì³£ÖÐÓÐÄĸöÒì³£×Ó¼¯±»ÉèÖÃÁË */
extern int fetestexcept (int __excepts) __THROW;
/* ÉáÈë¿ØÖÆ */
/* »ñµÃµ±Ç°µÄÉáÈë·½Ïò£¬±íʾΪһ¸öÉáÈë


Ïà¹ØÎĵµ£º

VB/C++/C#´®¿ÚͨѶԴ´úÂ롾¸½ÏêϸעÊÍ¡¿


VB
    If MSComm1.PortOpen = True Then MSComm1.PortOpen = False
    MSComm1.CommPort = i1
    MSComm1.PortOpen = True
    MSComm1.InputMode = comInputModeBinary
    MSComm1.InBufferCount = 0
& ......

±à³ÌʵÏÖÒ»Ôª¶þ´Î·½³ÌµÄ½â ax^2+bx+c=0

#include "stdafx.h"
#include <iostream>
#include <cmath>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
double a,b,c;
double delta;
double x1,x2;
cout<<"Please input a,b,c:"<<endl;
cin>>a>>b>>c;
if(cin.fail())
{
cout<< ......

DSPÖеÄCÓÅ»¯

 C6000ϵÁÐDSPµÄÓ²¼þ×ÊԴΪ¸ßÐÔÄÜÌá¸ßÁ˱ØÒªÌõ¼þ£¬TI¹«Ë¾Ò²ÅäºÏC6000ÍƳöÁËÊÀ½çÉϵÚÒ»¸öЧÂÊ¿É´ï70£¥¡«80£¥µÄ»ã±àÓïÑÔ¼¶C±àÒëÆ÷£¬Ëü²úÉúµÄ´úÂëƽ¾ùЧÂÊÊÇÒÔÍùDSP±àÒëÆ÷µÄ3±¶£¬ÈçºÎÀí½â²¢³ä·ÖÀûÓÃÕâЩÓÐÀû×ÊÔ´£¬Ê¹´úÂë´ïµ½ËùÆÚÍûµÄÐÔÄÜ£¬ÊDZ¾ÕµÄÖ÷Ìâ¡£
¢Ù     µÚÒ»½×¶Î£ºÊôÓÚ´¿C½×¶Î£¬´Ëʱ²»ÐèÒª ......

ÔÚpb11Öн«C/S³ÌÐòת»»µ½B/SµÄ²½Öè


ÔÚpb11Öн«C/S³ÌÐòת»»µ½B/SµÄ²½Öè(2009-01-06 21:12:20)
±êÇ©£ºÔÓ̸ 
·ÖÀࣺWebÏà¹Ø¼¼Êõ
ÔÚpb11Öн«C/S³ÌÐòת»»µ½B/SµÄ²½Öè
Ò»¡¢¿ª·¢»·¾³°²×°
1¡¢ÏÈ°²×°windowsµÄIIS5.0ÒÔÉÏ
2¡¢ÔÙ°²×°
£¨1£©°²×°asp.net framework 2.0
£¨2£©°²×°Microsoft .NET Framework SDK 2.0, 3.0 or 3.5£¬ÎªÄܹ»ÔËÐÐ.net web·þÎñÒýÇ ......

»ªÎªC/C++±ÊÊÔÌâ3

1. ÕÒ´í
#define MAX_SRM 256
DSN get_SRM_no()
{
    static int SRM_no;
    int I;
    for(I=0;I<MAX_SRM;I++,SRM_no++)
    {
        SRM_no %= MAX_SRM;
        ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ