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

ÇëÎʸöCÀïÃæfmod()µÄÎÊÌâ - C/C++ / CÓïÑÔ

ÎÒÏëÖªµÀ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;
}

ÕâÑù×Ó¡­¡­¡­¡­

ÒýÓÃ

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;

}



ÒýÓÃ
C/C++ code
double fmod(double a,double b){
int c;
c=(int)(a/b);
return a-b*c;


Ïà¹ØÎÊ´ð£º

linux»·¾³ÏÂgethostbynameº¯ÊýÎÊÌâ - C/C++ / CÓïÑÔ

дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
   
  struct hostent *hp; 
char AlarmDevIP[20];  
  int x2;

hp = gethostbyname("www.google.com");
if (hp)
{ ......

Ϊʲôxml²»ÄÜÏÔʾ°¢À­²®ÎÄ - C/C++ / C++ ÓïÑÔ

ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À­²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À­²®ÎĵÄ×Ö¿âÄãÓÐô£¿

ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......

visual c++2008²»ÄܱàÒëC³ÌÐòÂð - C/C++ / CÓïÑÔ

visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©

¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ

ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......

c/sºÍb/sÖ®¼äÔõôͨѶ. - Java / Web ¿ª·¢

ÔھƵê¹ÜÀíϵͳÖÐ,ÓÐÒ»¸ö¶ÔÄÚµÄϵͳ,¹©Ç°Ì¨·þÎñÔ±ºÍ¾­ÀíʹÓÃ
»¹ÓÐÒ»¸ö¾ÍÊǶÔÍâ,Èÿͻ§¿ÉÒÔÔÚÍøÉÏÔ¤¶©·¿¼ä,
ËüÃÇÖ®¼äÊÇÔõôͨѶµÄ.?µ±ÎÒÌá½»Ô¤¶©·¿¼äÐÅÏ¢µÄʱºò,
ÔÚ¶ÔÄÚµÄϵͳÖÐ,ÈçºÎÖªµÀÎÒÒѾ­Ìá½»ÁËÐÅÏ¢¹ýÈ¥.Ê¹Ç ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ