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;
/* ÉáÈë¿ØÖÆ */
/* »ñµÃµ±Ç°µÄÉáÈë·½Ïò£¬±íʾΪһ¸öÉáÈë
Ïà¹ØÎĵµ£º
(ת)C++ÖÐextern “C”º¬ÒåÉî²ã̽Ë÷
1.ÒýÑÔ
¡¡¡¡C++ÓïÑԵĴ´½¨³õÖÔÊÇ“a better C”£¬µ«ÊÇÕâ²¢²»Òâζ×ÅC++ÖÐÀàËÆCÓïÑÔµÄÈ«¾Ö±äÁ¿ºÍº¯ÊýËù²ÉÓõıàÒëºÍÁ¬½Ó·½Ê½ÓëCÓïÑÔÍêÈ«Ïàͬ¡£×÷ΪһÖÖÓûÓëC¼æÈݵÄÓïÑÔ£¬C++±£ÁôÁËÒ»²¿·Ö¹ý³ÌʽÓïÑÔµÄÌص㣨±»ÊÀÈ˳ÆΪ“²»³¹µ×µØÃæÏò¶ÔÏó&rdquo ......
1.ÏÂÃæÄÄÖÖ´úÂë·ç¸ñ¸üºÃ£¬why£¿
A . if ('A' == a)
{a++;}
B. if( a == 'A')
{a++;}
´ð°¸£ºA£¬Èç¹û°Ñ==´íд³É=£¬ÒòΪ±àÒëÆ÷²»ÔÊÐí¶Ô³£Á¿¸³Öµ£¬ÈÝÒײî´í¡£
2.#define MUTI(x) (x*x)
int i=3,j, ......
ÔÚC/C++ÖУ¬Ìø³ö¶à²ãÑ»·ÓÐ3Öз½·¨£º
1.ÓÃbreak;¼ÓÉÏÒ»¸ö¸¨ÖúµÄ±êÖ¾±äÁ¿¡£
2.ÓÃgoto;
3.ÓÃtry ... catch;
ÆäÖÐbreak¶Ôif-elseÓï¾äÎÞЧ£¬Ã¿´ÎʹÓÃÖ»ÄÜÌø³öÒ»²ãÑ»·¡£
ÓÃbreakµÄ¾ßÌå·½·¨Îª£º
bool BREAK=false;
while(...){
for(...){
......
×î½üÔÚ¿ª·¢ÖУ¬¶Ô³£Á¿²ÎÓëÔËËãʱºò£¬³öÁ˼¸¸öÎÊÌ⣬ÌؼǼÈçÏ£º
1.Àý×ÓÒ»£¨KEIL-51£©
unsigned char recsum,xorsum;
recsum == 0xFF;
xorsum == 0x00;
if(recsum != (xorsum-1)) //Õâʱºò²»ÏàµÈ
if(recsum != (unsigned ch ......
ÔÚ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·þÎñÒýÇ ......