µ±Ç°Î»ÖãºLinux½Ì³Ì - Linux×ÛºÏ - ѧ»áÔÚ LinuxÏ·À»ðǽµÄ»úÖÆÓ¦ÓÃ

ѧ»áÔÚ LinuxÏ·À»ðǽµÄ»úÖÆÓ¦ÓÃ

¡¡¡¡Ç°ÑÔ¡¡¡¡¡¡¡¡ÔÚ½üÈÕ¼¸¸öÌû×ÓÀïÃ棬ºÍQQȺµÄÌÖÂÛÀïÃ棬ÎÒ·¢ÏֺܶàÍøÓѶ¼Óöµ½µÄÎÊÌⶼÊÇÒòΪ²»Ç¡µ±µØʹÓÃÁ˵¥¾«¶È/Ë«¾«¶ÈÊýÖµ¡£Òò´ËÏëרÞÍÕâ¸ö»°Ìâ̸һÏ¡£¡¡¡¡¡¡¡¡µ¥¾«¶ÈºÍË«¾«¶ÈÊýÖµÀàÐÍ×îÔç³öÏÖÔÚCÓïÑÔÖУ¨±È½ÏͨÓõÄÓïÑÔÀïÃ棩£¬ÔÚCÓïÑÔÖе¥¾«¶ÈÀàÐͳÆΪ¸¡µãÀàÐÍ£¨Float£©£¬¹ËÃû˼ÒåÊÇͨ¹ý¸¡¶¯Ð¡ÊýµãÀ´ÊµÏÖÊý¾ÝµÄ´æ´¢¡£ÕâÁ½¸öÊý¾ÝÀàÐÍ×îÔçÊÇΪÁË¿Æѧ¼ÆËã¶ø²úÉúµÄ£¬ËûÄܹ»¸ø¿Æѧ¼ÆËãÌṩ×ã¹»¸ßµÄ¾«¶ÈÀ´´æ´¢¶ÔÓÚ¾«¶ÈÒªÇó±È½Ï¸ßµÄÊýÖµ¡£µ«ÊÇÓë´Ëͬʱ£¬ËûÒ²ÍêÈ«·ûºÏ¿Æѧ¼ÆËãÖжÔÓÚÊýÖµµÄ¹ÛÄ¡¡¡¡¡¡¡¡µ±ÎÒÃDZȽÏÁ½¸ö¹÷×ӵij¤¶ÈµÄʱºò£¬Ò»ÖÖ·½·¨ÊDz¢ÅÅ·Å×űȽÏһϣ¬Ò»ÖÖ·½·¨ÊÇ·Ö±ðÁ¿³ö³¤¶È¡£µ«ÊÇÊÂʵÉÏÊÀ½çÉϲ¢²»´æÔÚÁ½¸ùÍêÈ«Ò»Ñù³¤µÄ¹÷×Ó£¬ÎÒÃDzâÁ¿µÄ³¤¶È¾«¶ÈÊܵ½ÈËÀàÄ¿²âÄÜÁ¦ºÍ²âÁ¿¹¤¾ß¾«¶ÈµÄÏÞÖÆ¡£´ÓÕâ¸öÒâÒåÉÏÀ´Ëµ£¬ÅжÏÁ½¸ù¹÷×ÓÊÇ·ñÒ»Ñù³¤Ë¿ºÁûÓÐÒâÒ壬ÒòΪ½á¹ûÒ»¶¨ÊÇFalse£¬µ«ÊÇÎÒÃÇ¿ÉÒԱȽÏËûÃÇÁ½¸öÄĸö¸ü³¤»òÕ߸ü¶Ì¡£Õâ¸öÀý×ӺܺõظÅÀ¨Á˵¥¾«¶È/Ë«¾«¶ÈÊýÖµÀàÐ͵ÄÉè¼Æ³õÖԺʹæÔÚÒâÒå¡£¡¡¡¡¡¡¡¡»ùÓÚÉÏÊöÈÏʶ£¬µ¥¾«¶È/Ë«¾«¶ÈÊýÖµÀàÐÍ´ÓÒ»¿ªÊ¼Éè¼ÆµÄʱºò£¬¾Í²»ÊÇÒ»¸ö׼ȷµÄÊýÖµÀàÐÍ£¬ËûÖ»±£Ö¤ÔÚËûÕâ¸öÊýÖµÀàÐ͵ľ«¶ÈÖ®ÄÚÊÇ׼ȷµÄ£¬¾«¶ÈÖ®ÍâÔò²»±£Ö¤£¬±È·½Ëµ£¬Ò»¸öÊýÖµ5.1£¬ºÜ¿ÉÄÜ´æ´¢ÔÚµ¥¾«¶È/Ë«¾«¶ÈÊýÖµÖеÄʵ¼ÊÖµÊÇ5.100000000001»òÕß5.09999999999999¡£µ¼ÖÂÕâ¸öÏÖÏóµÄÔ­ÒòÎÒÃÇ¿ÉÒÔͨ¹ýÁ½ÖÖ·½Ê½À´½âÊÍ£º¡¡¡¡¡¡¡¡¼òµ¥µÄ½âÊÍ·½·¨£º¡¡¡¡¡¡¡¡Äã¿ÉÒÔ³¢ÊÔÔÚÈκÎÒ»¸ö¿Ø¼þµÄÊôÐÔÃæ°åÖУ¬É趨ËûµÄ¿í¶ÈΪ£º3.2CM£¬µ±ÄãÊäÈëÍê±Ïºó£¬Äã»á·¢ÏÖÖµ×Ô¶¯±ä³ÉÁË3.199cm£¬ÎÞÂÛÄãÔõô¸Ä£¬Ä㶼ÎÞ·¨ÊäÈë3.200CM£¬ÒòΪʵ¼ÊÉÏÔÚµçÄÔÖд洢µÄ²¢²»ÊÇCMΪµ¥Î»µÄÊýÖµ£¬¶øÊÇ¡°ç¾¡±Îªµ¥Î»µÄÊýÖµ£¬¶ø¡°ç¾¡±ºÍCMÖ®¼äµÄ±ÈÖµ£¬ÊǸöºÜÄѱ»³ý¾¡µÄÊý£¬Òò´ËÄãÊäÈëÍê±Ïºó£¬µçÄÔ×Ô¶¯×ª»»³ÉÁË×î½Ó½üµÄ¡°ç¾¡±Öµ£¬È»ºóÔÙת»»³ÉÀåÃ×ÏÔʾµ½ÊôÐÔÃæ°åÉÏ£¬ÕâÒ»³ËÒ»³ý£¬Á½´ÎËÄÉáÎåÈ룬Îó²î¾Í³öÀ´ÁË¡£µ¥¾«¶È/Ë«¾«¶ÈÒ²ÊÇÀàËƵÄÔ­Àí£¬ÆäʵÔÚ¶þ½øÖÆ´æ´¢µÄʱºò£¬µ¥¾«¶È/Ë«¾«¶È¶¼²ÉÓÃÁËÀàËÆÏà½ü·ÖÊýµÄ·½·¨£¬¶øÕâÑùµÄ´æ´¢ÊDz»¿ÉÄÜ×öµ½×¼È·µÄ¡£¡¡¡¡¡¡¡¡ÉîÈëµÄ½âÊÍ·½·¨£º¡¡¡¡¡¡¡¡ÈÃÎÒÃÇÀ´¿´¿´ÎÒÃÇ´æ´¢µ½Êý×Ö½éÖÊÖеĵ¥¾«¶È/Ë«¾«¶ÈÖµµ½µ×ÊÇÔõôÑùµÄ£¬ÎÒÃÇʹÓÃÈçÏ´úÂë¶Ôµ¥¾«¶ÈÀàÐͽøÐÐÒ»¸ö½âÆÊ£º¡¡¡¡¡¡¡¡Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)¡¡¡¡¡¡¡¡Public Sub floatTest()¡¡¡¡Dim dblVar As Single¡¡¡¡¡¡¡¡dblVar = 5.731 / 8¡¡¡¡dblOutput dblVar¡¡¡¡¡¡¡¡dblVar = dblVar * 2¡¡¡¡dblOutput dblVar¡¡¡¡¡¡¡¡dblVar = dblVar * 2¡¡¡¡dblOutput dblVar¡¡¡¡¡¡¡¡dblVar = dblVar * 2¡¡¡¡dblOutput dblVar¡¡¡¡¡¡¡¡dblVar = dblVar * 2¡¡¡¡dblOutput dblVar¡¡¡¡¡¡¡¡dblVar = dblVar * 2¡¡¡¡dblOutput dblVar¡¡¡¡¡¡¡¡End Sub¡¡¡¡¡¡¡¡Public Sub dblOutput(ByVal dblVar As Single)¡¡¡¡Dim bytVar(3) As Byte¡¡¡¡Dim i As Integer, j As Integer¡¡¡¡Dim strVar As String¡¡¡¡¡¡¡¡CopyMemory ByVal VarPtr(bytVar(0)), ByVal VarPtr(dblVar), 4¡¡¡¡strVar = dblVar & ": "¡¡¡¡For i = 3 To 0 Step -1¡¡¡¡For j = 7 To 0 Step -1¡¡¡¡strVar = strVar & (bytVar(i) And 2 ^ j) / 2 ^ j¡¡¡¡Next j¡¡¡¡strVar = strVar & " "¡¡¡¡Next i¡¡¡¡Debug.Print strVar¡¡¡¡¡¡¡¡End Sub¡¡¡¡ÔËÐкóÎÒÃǵõ½Êä³ö½á¹û£¨Êä³ö¸ñʽΪ¸ßλ×󣬵ÍλÓÒ£©£º¡¡¡¡¡¡¡¡.716375: 00111111 00110111 01100100 01011010¡¡¡¡1.43275: 00111111 10110111 01100100 01011010¡¡¡¡2.8655: 01000000 00110111 01100100 01011010¡¡¡¡5.731: 01000000 10110111 01100100 01011010¡¡¡¡11.462: 01000001 00110111 01100100 01011010¡¡¡¡22.924: 01000001 10110111 01100100 01011010¡¡¡¡¡¡¡¡ÕâÀÎÒÃǰѵ¥¾«¶ÈÀàÐÍת»¯³ÉÁ˶þ½øÖÆÊý¾ÝÊä³ö£¬ÕâÀïÎÒÃÇ¿´µ½£¬ËäÈ»ÕâÁù¸öÊý×ÖÍêÈ«²»Í¬£¬µ«ÊÇËûÃǵĶþ½øÖÆ´æ´¢¾ªÈ˵ØÏàËÆ£¬ÎÒÃÇ¿´µ½ºìÉ«±ê¼Ç²¿·Ö£¬Ã¿´Î¶¼ÊǼÓ1£¬ÊÂʵÉÏ£¬µ¥¾«¶ÈÊý¾ÝÀàÐÍʹÓôӸßλ¿ªÊ¼µÚ1λ×÷ΪÕý¸º±ê¼Ç루ÂÌÉ«£©£¬µÚ2λµ½µÚ9룬ÊÇÒ»¸ö¿ç×Ö½ÚµÄÓзûºÅ×Ö½ÚÀàÐÍÊý¾Ý£¬Õâ¸öÊýÖµ¾ö¶¨ÁËСÊýµãÒƶ¯µÄ·½ÏòºÍλÊý£¨ºìÉ«£©£¬µÚ10λµ½32λ±£´æÒ»¸öÕûÊý£¨À¶É«£©ÔÚ´æ´¢¹ý³ÌÖУ¬µçÄÔÊ×ÏÈ°ÑÊäÈëµÄÖµ²»¶ÏÒÆ루³Ë³ý2£©Ö±µ½Õâ¸öÊýµÄÕûÊý²¿·ÖÕ¼ÓÃÁËÈ«²¿24λµÄÕûÊýλ£¬È»ºó°ÑÒƶ¯µÄλÊýдÈ븡µã²¿·Ö£¨ºìÉ«£©£¬¶øÒÆλºóµÄ½á¹ûдÈëÕûÊý²¿·Ö£¨À¶É«ºÍÂÌÉ«£©£¬Ð¡Êý²¿·ÖÔòÉáÆú¡£ÇóÖµµÄʱºòÔòÊÇ·´Ïò¹ý³Ì£¬Ïȸù¾ÝÕý¸ºÎ»ºÍÕûÊýλÇóÖµ£¬È»ºó¸ù¾ÝºìÉ«²¿·ÖµÄÕûÊýÀ´½øÐÐÒÆ루³Ë³ý2µÄ´Î·½£©£¬×îÖÕ²ÅÊÇÎÒÃǵõ½µÄµ¥¾«¶ÈÊýÖµ¡£Ë«¾«¶ÈÊýÖµÒ²ÊÇͬÑùÔ­Àí£¬Ö»ÊÇλÊý¸ü¶à¶øÒÑ¡£¡¡¡¡¡¡¡¡Í¨¹ý½âÆʵ¥¾«¶ÈÊýÖµµÄ¶þ½øÖÆ´æ´¢¸ñʽ£¬ÎÒÃÇ¿ÉÒÔÇå³þ¿´µ½£¬Êµ¼ÊÉϵ¥¾«¶È/Ë«¾«¶ÈµÄ´æ´¢£¬¶¼ÒªÍ¨¹ý³Ë·¨ºÍ³ý·¨£¬ÆäÖбØÓÐÉáÈ룬Èç¹ûÇ¡ºÃÄãµÄÊýÖµÔÚ³ý·¨Öб»ÉáÈëÁË£¬ÄÇôÄ㸳µÄ³õÖµ¾ÍºÜ¿ÉÄÜÓëÄã×îÖÕ´æ´¢µÄÖµ²»ÍêÈ«Ïàͬ£¬ÆäÖеÄ΢С²îÒ죬²¢²»Óëµ¥¾«¶È/Ë«¾«¶ÈµÄÉè¼ÆÄ¿±êÏàÎ¥±³¡£¡¡¡¡¡¡¡¡µ±ÎÒÃÇÔÚÊý¾Ý¿âÖлòÕßVBA´úÂëÖÐʹÓÃÒ»¸öµ¥¾«¶È/Ë«¾«¶ÈÊýÖµµÄʱºò£¬Ò²ÐíÄã´Ó½çÃæÉÏ¿´²»µ½Çø±ð£¬µ«ÊÇÔÚʵ¼ÊµÄ´æ´¢ÖУ¬Õâ¸ö²î±ðÈ´ÕæÕæÇÐÇеؾÍÔÚÄÇÀµ±Äã¶ÔÆä½øÐÐÏàµÈ±È½ÏµÄʱºò£¬ÏµÍ³Ö»ÊǼòµ¥µØ×÷¶þ½øÖƵıȽϣ¬½çÃæÉÏÎÞ·¨ÌåÏÖµÄ΢С²îÒ죬ÔÚ¶þ½øÖƱȽÏÃæÇ°È´ÎÞ´¦¶ÝÐΣ¬ÓÚÊÇ£¬ÄãµÄµÈÓڱȽϷµ»ØÁËÒ»¸öÒâÁÏÖ®ÍâµÄFalse¡£¡¡¡¡¡¡¡¡½áÊøÓï¡¡¡¡¡¡¡¡Í¨¹ý±¾ÎÄ£¬ÎÒÃǽéÉÜÁ˵¥¾«¶È/Ë«¾«¶ÈÊý¾ÝÀàÐ͵ÄʵÖÊÒÔ¼°ÆäÌص㣨ÓŵãºÍȱµã£©£¬Í¨¹ý±È½ÏºÍ½âÆÊÎÒÃÇÁ˽⵽µ¥¾«¶È/Ë«¾«¶Èʵ¼ÊÉÏ´æ´¢µÄÊÇÒ»¸ö½üËÆÖµ£¬¸¡µãµÄÌØÐÔ¾ö¶¨ÁËËû¿ÉÒÔ´æ´¢·Ç³£Ð¡µÄÊý£¬Ò²¿ÉÒÔ´æ´¢¼«´óµÄÊý£¬ËûµÄÊý¾Ý¾«¶È²¢²»ÊÇÒ»¸ö¾ø¶ÔÖµ£¬¶øÊÇ´æ´¢ÖµµÄ°Ù·Ö±È£¬Èç¹ûÄã´æ´¢10µÄ100´Î·½£¬Îó²î¾Í¿ÉÄÜÊÇ10µÄ80´Î·½£¬Èç¹ûÄã´æ´¢10µÄ-100´Î·½£¬Îó²î¾Í¿ÉÄÜÊÇ10µÄ-120´Î·½¡£Òò´Ëµ¥¾«¶È/Ë«¾«¶ÈÊý¾ÝÀàÐͲ»ÄܽøÐÐÏàµÈµÄ±È½Ï£¨»òÊý¾Ý¿â¹ØÁª£©¡£¡¡¡¡¡¡¡¡Èç¹ûÄãÐèÒª½øÐеÈÖµ±È½Ï»ò¹ØÁª£¬ÄÇôÓÐÒÔϼ¸ÖÖ·½°¸£º¡¡¡¡¡¡¡¡1¡¢Ê¹ÓÃרΪ׼ȷ¶È¶øÉè¼ÆµÄ»õ±ÒÀàÐÍ¡£¡¡¡¡¡¡¡¡2¡¢Ê¹ÓÃÕûÊýÀàÐÍ´æ´¢£¬´úÂëÖÐÒÆλ¡£¡¡¡¡¡¡¡¡3¡¢Ä³Ð©Ìض¨Çé¿öÏ¿ÉÒÔÓÃÎÄ×Ö´æ´¢¡£
[1] [2] ÏÂÒ»Ò³ 

£¨³ö´¦£ºhttp://www.sheup.com£©


ÉÏÒ»Ò³ [1] [2]