¡¾C\C++ÓïÑÔÈëÃÅƪ¡¿ ÆÊÎö¸¡µãÊý
Ç°ÃæһƪÎÒÃǽ²ÁËλÔËËãºó£¬»ù±¾CÓïÑԵĴó¿é¶¼Ìá¼°ÁË£¬Ò»Ð©Ï¸½ÚºÍÓ÷¨ÔÝʱ²»ÔÙ±¾Ä£¿é½éÉÜÁË¡£Ï£ÍûÎÒµÄÐÄÔ¸Äܹ»ÔÚÎÒ±Ïҵ֮ǰ¸øÎҵĴóѧÉúÑÄ»®ÉÏÒ»¸öÔ²ÂúµÄ¾äºÅ¡£¼ÓÓÍŬÁ¦¡£
ÔÚ±¾Ä£¿éµÄµÚÈýƪ¾ÍÒѾ½²ÁË»ù±¾µÄÊý¾ÝÀàÐÍ£¬ÆäÖаѸ¡µãÊý¿ÌÒâÁôÔÚÁ˺óÃæÀ´½éÉÜ¡£ÎÒµÄÀí½âÊÇÔÚÎÒÃÇÀí½âÁËÄڴ棬ָÕ룬λÔËËãµÈºó£¬ÔÙÀ´½éÉܸ¡µãÕâ¸öÌØÊâ¶øÓÖÆÕͨµÄÊý¾ÝÀàÐͱȽϺÃÀí½â¡£¸¡µãÊýºÍ»ù±¾ÀàÐÍÊý¾ÝµÄ´æ´¢²î±ð±È½Ï´ó£¬ÕâÀï²»ÊÇ˵´æ´¢ÐÎʽµÄ²î±ð£¬¶øÊǸ¡µãÊý´æ·ÅµÄʱºòÊÇÒª¾¹ýÔËËãºóÔÙת»»³ÉÕûÊýµÄ4×Ö½Ú»ò8×Ö½ÚµÄÐÎʽ£¬È»ºóÔÙ´æ·Åµ½ÄÚ´æÀï¡£Òò´Ë£¬Ö»Í¨¹ý16½øÖÆÊýÊÇ¿´²»³öÀ´ºÍÕûÊýÓÐʲô²î±ð¡£Í¬Ñù£¬¸¡µãÊý¾ßÌåÊÇÔõô´æ´¢µÄ£¬ÔÚ´óѧµÄ¿Î³ÌÉÏÒ»°ã²»»áϸϸ½²½â£¬Ò»°ãÊÇÎÒÃÇ×Ô¼ºÓÐÐËȤÔÙ²éÔÄ×ÊÁÏ¡£°üÀ¨±¾ÆªµÄÄÚÈÝ£¬Èç¹ûÄã²»ÊÇÒ»¸ö×ÔѧÕß»òÕß³äÂúºÃÆæÐÄ£¬ÄãÒ²²»»á¿´ÏÂÈ¥£¬Ò²²»»áÕÒµ½±¾ÆªµÄURL¡£Òò´Ë£¬°üÀ¨ºÜ¶àÒѾ¹¤×÷ºÜ¶àÄêµÄ³ÌÐòÔ±¶¼²»ÖªµÀ¸¡µãÊý¾ßÌåÊÇÔõôÔËËãÈ»ºó´æ´¢µÄ¡£¾ÍÎÒÀ´½²£¬ÈÏΪ»¹ÊǷdz£ÓбØÒªÁ˽âÕâ¸ö³£ÓõÄÊý¾ÝÀàÐ͵Ļ»Ëã¹ý³Ì£¬ËäÈ»ÎÒÃǸöÈËÀ´½²ºÜÄÑÈ¥´òÆƵ±Ç°¸¡µãÊýµÄ¼ÆËã¹æÔòÒÔÖÁÓÚ½«ËûµÄ¾«¶ÈÌá¸ß£¬µ«ÊÇÁ˽âϵײ㹤×÷ÕßÃǵÄÐÁ¿à£¬ÎÒÃÇÓ¦¸ÃÏòËûÃÇÕæ³ÏµÄÖ¾´¡£ÒòΪÓÐËûÃÇ£¬ÎÒÃDZãÓÐÁË´óÊ÷¿ÉÒÔ³ËÁ¹¡£
ºÃÁË£¬·Ï»°²»¶à˵¡£±¾ÆªµÄÄ¿µÄ¾ÍÊÇΪÁËÈøü¶àµÄÈËÁ˽⸡µãÊý´æ´¢µÄ»ù±¾ÔÀí£¬»¹ÊÇÄǾ仰£¬Ñ§Ï°µÄͬʱ´ø×Å˼¿¼¡£Í¬ÑùÕâÀï²»ÌÖÂÛ¸¡µãÊýµÄ¾«¶ÈËðʧºÍÊýÖµµÄ¼ÆËãÀíÂÛ¡£Ö±½Ó½²ÊµÖʵıíÏÖ¡£
ÔÚ¼ÆËã»ú·¢Õ¹¹ý³ÌÖУ¬ÎÒÃÇʹÓõÄСÊýºÍʵÊýÔø¾Ìá³ö¹ýºÜ¶àÖֵıíʾ·½·¨¡£µäÐ͵ıÈÈçÏà¶ÔÓÚ¸¡µãÊýµÄ¶¨µãÊý£¨Fixed Point Number£©¡£ÔÚÕâÖÖ±í´ï·½Ê½ÖУ¬Ð¡Êýµã¹Ì¶¨µÄλÓÚʵÊýËùÓÐÊý×ÖÖмäµÄij¸öλÖ᣻õ±ÒµÄ±í´ï¾Í¿ÉÒÔʹÓÃÕâÖÖ·½Ê½£¬±ÈÈç 88.22 »òÕß 22.88 ¿ÉÒÔÓÃÓÚ±í´ï¾ßÓÐËÄλ¾«¶È£¨Precision£©£¬Ð¡ÊýµãºóÓÐÁ½Î»µÄ»õ±ÒÖµ¡£ÓÉÓÚСÊýµãλÖù̶¨£¬ËùÒÔ¿ÉÒÔÖ±½ÓÓÃËÄλÊýÖµÀ´±í´ïÏàÓ¦µÄÊýÖµ¡£SQL ÖÐµÄ NUMBER Êý¾ÝÀàÐ;ÍÊÇÀûÓö¨µãÊýÀ´¶¨ÒåµÄ¡£»¹ÓÐÒ»ÖÖÌáÒéµÄ±í´ï·½Ê½ÎªÓÐÀíÊý±í´ï·½Ê½£¬¼´ÓÃÁ½¸öÕûÊýµÄ±ÈÖµÀ´±í´ïʵÊý¡£
ºÜÏÔÈ»£¬ÉÏÃæµÄ¶¨µãÊý±íʾ·¨ÓÐȱÏÝ£¬²»ÄܱíʾºÜСµÄÊý»òÕߺܴóµÄÊý¡£ÓÚÊÇ£¬ÎªÁ˽â¾öÕâÖÖÎÊÌ⣬ÎÒÃǵÄÇ°±²ÃÇ×ÔÈ»Ïëµ½ÁË¿Æѧ¼¼Êõ·¨µÄÐÎʽÀ´±íʾ£¬¼´ÓÃÒ»¸öβÊý£¨Mantissa £©£¬Ò»¸ö»ùÊý£¨Base£©£¬Ò»¸öÖ¸Êý£¨Exponent£©ÒÔ¼°Ò»¸ö±íʾÕý¸ºµÄ·ûºÅÀ´±í´ïʵÊý¡£±ÈÈç 123.456 ÓÃÊ®½øÖÆ¿Æѧ¼ÆÊý·¨¿ÉÒÔ±í´ïΪ 1.23456 × 102 £¬ÆäÖÐ 1.23456 ΪβÊý£¬10 Ϊ»ùÊý£¬2 Î
Ïà¹ØÎĵµ£º
C×Ö·û´®´¦Àíº¯ÊýµÄʵÏÖ£¨Linux£©
#include <stddef.h>
char * ___strtok = NULL;
char * strcpy(char * dest,const char *src)
{
char *tmp = dest;
while ((*dest++ = *src++) != '\0')
/* nothing */;
return tmp;
}
char * strncpy(char * des ......
²ÉÓÃ×¢Èëµ½ÆäËû½ø³ÌµÄ·½·¨À´Òþ²Ø×Ô¼ºµÄ½ø³Ì¡£¾ÍÊÇ˵£¬°ÑÄãÏë×öµÄÊÂÇé¼ÄÉúµ½±ðÈ˵Ľø³ÌÀïÃæ¡£±ÈÈçIEʲôµÄ¡£¹ØÓÚ×¢ÈëµÄ·½·¨ºÜ¶à£¬ÏÂÃæÎÒ¸øÄãÒ»¸öDLL×¢ÈëµÄ·½·¨£¬Õâ¸öÊÇÎÒ×öijÍâ¹ÒʱÓùýµÄ´úÂ룬Äã²Î¿¼Ò»Ï°ѡ£
int APIENTRY _tWinMain( HINSTANCE hInstance,
  ......
/*
* linux/kernel/floppy.c
*
* (C) 1991 Linus Torvalds
*/
/*
* 02.12.91 - Changed to static variables to indicate need for reset
* and recalibrate. This makes some things easier (output_byte reset
* checking etc), and means less i ......