ÎÒÏëÖªµÀfmod()Õâ¸öº¯ÊýÊÇÔõÑùʵÏÖµÄ...Ò²¾ÍÊÇ˵ÎÒÏëÖªµÀËüµÄÔ´´úÂë...ÒòΪ×Ô¼ºÍêȫû˼·ÔõôдÕâ¸öº¯Êý...ËùÒÔÖ»ÄÜÕÒ³öËüµÄʵÏÖ´úÂëÁË...µ«ÊǸÕÏÂÁ˸öCÓïÑԿ⺯ÊýÔ´ÂëµÄ°ü...²éÁË°ëÌìÒ²²éµÃºÜãȻ...ËùÒÔ...Ï£ÍûÄĸö˧ÎÑ´óÏÀ·¹ý±ð´í¹ý...¸øСµÜÌùÉÏÕ⺯ÊýµÄÔ´´úÂë°É...ллÁË
fmodµÄ¹¦ÄÜÊÇʲô£¿
²»¶®£¬°ï¶¥
double fmod(double x,double y); ÇóÁ½¸¡µãÊýÏà³ýºóµÄÓàÊý
C/C++ code:
double fmod(double a,double b){
int c;
c=(int)(a/b);
return a-b*c;
}
ÕâÑù×Ó¡¡¡¡
ÕâÑù×Ó¡£¡£¡£¡£¡£¡£¡£
__ieee754_fmod
²Î¿¼ieee754±ê×¼
¹©²Î¿¼£º
double my_fmod02(double x, double y)
{
double temp, ret;
if (y == 0.0)
return 0.0;
temp = floor(x/y);
ret = x - temp * y;
if ((x < 0.0) != (y < 0.0))
ret = ret - y;
return ret;
}
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©
¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ
ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......
ÔھƵê¹ÜÀíϵͳÖÐ,ÓÐÒ»¸ö¶ÔÄÚµÄϵͳ,¹©Ç°Ì¨·þÎñÔ±ºÍ¾ÀíʹÓÃ
»¹ÓÐÒ»¸ö¾ÍÊǶÔÍâ,Èÿͻ§¿ÉÒÔÔÚÍøÉÏÔ¤¶©·¿¼ä,
ËüÃÇÖ®¼äÊÇÔõôͨѶµÄ.?µ±ÎÒÌá½»Ô¤¶©·¿¼äÐÅÏ¢µÄʱºò,
ÔÚ¶ÔÄÚµÄϵͳÖÐ,ÈçºÎÖªµÀÎÒÒѾÌá½»ÁËÐÅÏ¢¹ýÈ¥.Ê¹Ç ......