Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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;


Ïà¹ØÎÊ´ð£º

c¾²Ì¬±àÒëÁíÒ»¸öÎļþ¼ÐµÄ¿âº¯Êý - C/C++ / CÓïÑÔ

ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......

¸ÕѧÍêCµÄ»ù´¡£¬ÇóÏÂÒ»²½ - C/C++ / CÓïÑÔ

ÎÒ¸Õ°ÑÌ·ºÆÇ¿µÄµÚÈý°æµÄÊéѧÍ꣬ÎÒÖªµÀµÄÓÐC++£¬CºÍÖ¸Õë CȱÏݺÍÏÝÚå Cר¼Ò±ä³É£¬»¹ÓÐÊý¾Ý½á¹¹£¬ÎÒÏëÎÊÎÊÎÒÓ¦¸ÃÒÔʲô˳ÐòÀ´Ñ§ÄØ
CȱÏݺÍÏÝÚå Cר¼Ò±à³Ì
Êǽø½×µÄ£¬²»Óü±×Å¿´
ÖÁÓÚ
CºÍÖ¸Õë 
Äã²»Àí½âÖ ......

¿ÄÇóC/SÔ´Âë - Delphi / Êý¾Ý¿âÏà¹Ø

ÏÖÓÐparadoxÊý¾Ý¿âʹÓÃBDEÇý¶¯£¬Äâ¸ÄΪC/S°æ£¬Ôö¼ÓÍøÂç¶ÁÈ¡Êý¾Ý¹¦ÄÜ¡£ÇëÄÄλ´óÏÀ£¬ÌṩԴÂë¡£
˵¾ä²»¿ÍÆøµÄ»°£¬ÓÃparadox×öC/SÊÇ×ÔÑ°ËÀ·¡£
»»Ò»¸öÍøÂçÊý¾Ý¿â

ÒòΪ²»Ï붯´óÊÖÊõ£¬½öÄܹ²Ïí¼¸¸öÎļþ¼´¿É¡£

Da ......

CÖÐÈçºÎÅжÏdoubleÐÍÊý×éΪ¿Õ - C/C++ / CÓïÑÔ

[align=center][/align]CÓïÑÔÖÐÈçºÎÅжÏÒ»¸ödoubleÐ͵ÄÊý×飨Èçdouble S[20]£»£©ÊÇÒ»¸ö¿ÕÊý×飬¼´Êý×éÖÐûÓзÅÈκÎÖµ¡£
û°ì·¨¡£

"ÈκÎÖµ" µÄ¶¨Òå?

¾ÍÊÇÊý×éÊǿյģ¬Ã»ÓÐΪËü¸³Öµ

¿ÉÒÔ¿¼Â ......

C# SQL µÄUPDATETEXT ÎÊÌâ - .NET¼¼Êõ / C#

A±í ÓÐÁ½¸ö×ֶΠ
  id ΨһÊý×ÖÓò
  InfoTxt text ÀàÐÍ
 ÎÒÏÖÔÚÒª°Ñ id ²»ÊÇ14 µÄËùÓÐ InfoTxt×ֶΠÎı¾ºóÃæ ¶¼¼ÓÉÏ 'aaa' 
°´ÏÂÃæÖ´ÐÐÏÂÀ´ Ö»Óбí×îºóÒ»ÐмÓÉÏÁË 'aaa' ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ