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

C:\WINDOWS\system32\drivers\etc\hostsÊÇʲô¹¦ÄÜ??

½âÎöHostsÎļþ
ºÜ¶àÓû§¶¼ÖªµÀÔÚWindowϵͳÖÐÓиöHostsÎļþ£¨Ã»Óкó׺Ãû£©£¬ÔÚWindows98ϵͳϸÃÎļþÔÚWindowsĿ¼£¬ÔÚWindows2000/XPϵͳÖÐλÓÚC:\Winnt\System32\Drivers\Etc Ŀ¼ÖС£¸ÃÎļþÆäʵÊÇÒ»¸ö´¿Îı¾µÄÎļþ£¬ÓÃÆÕͨµÄÎı¾±à¼­Èí¼þÈç¼Çʱ¾µÈ¶¼ÄÜ´ò¿ª¡£
    ÓüÇʱ¾´ò¿ªhostsÎļþ£¬Ê×ÏÈ¿´¼ûÁË΢Èí¶ÔÕâ¸öÎļþµÄ˵Ã÷¡£Õâ¸öÎļþÊǸù¾ÝTCP/IPforWindowsµÄ±ê×¼À´¹¤×÷µÄ£¬ËüµÄ×÷ÓÃÊÇ°üº¬IPµØÖ·ºÍHost name(Ö÷»úÃû)µÄÓ³Éä¹Øϵ£¬ÊÇÒ»¸öÓ³ÉäIPµØÖ·ºÍHostname(Ö÷»úÃû)µÄ¹æ¶¨£¬¹æ¶¨ÒªÇóÿ¶ÎÖ»ÄÜ°üÀ¨Ò»¸öÓ³Éä¹Øϵ£¬IPµØÖ·Òª·ÅÔÚÿ¶ÎµÄ×îÇ°Ã棬¿Õ¸ñºóÔÙдÉÏÓ³ÉäµÄHost name(Ö÷»úÃû)¡£¶ÔÓÚÕâ¶ÎµÄÓ³Éä˵Ã÷ÓÓ#”·Ö¸îºóÓÃÎÄ×Ö˵Ã÷¡£
    ÏÖÔÚÈÃÎÒÃÇÀ´¿´¿´HostsÔÚWindowsÖÐÊÇÔõô¹¤×÷µÄ¡£
    ÎÒÃÇÖªµÀÔÚÍøÂçÉÏ·ÃÎÊÍøÕ¾£¬ÒªÊ×ÏÈͨ¹ýDNS·þÎñÆ÷°ÑÍøÂçÓòÃû£¨www.XXXX.com£©½âÎö³É61.XXX.XXX.XXXµÄIPµØÖ·ºó£¬ÎÒÃǵļÆËã»ú²ÅÄÜ·ÃÎÊ¡£ÒªÊǶÔÓÚÿ¸öÓòÃûÇëÇóÎÒÃǶ¼ÒªµÈ´ýÓòÃû·þÎñÆ÷½âÎöºó·µ»ØIPÐÅÏ¢£¬ÕâÑù·ÃÎÊÍøÂçµÄЧÂʾͻήµÍ£¬¶øHostsÎļþ¾ÍÄÜÌá¸ß½âÎöЧÂÊ¡£¸ù¾ÝWindowsϵͳ¹æ¶¨£¬ÔÚ½øÐÐDNSÇëÇóÒÔÇ°£¬Windowsϵͳ»áÏȼì²é×Ô¼ºµÄHostsÎļþÖÐÊÇ·ñÓÐÕâ¸öµØÖ·Ó³Éä¹Øϵ£¬Èç¹ûÓÐÔòµ÷ÓÃÕâ¸öIPµØÖ·Ó³É䣬Èç¹ûûÓÐÔÙÏòÒÑÖªµÄDNS ·þÎñÆ÷Ìá³öÓòÃû½âÎö¡£Ò²¾ÍÊÇ˵HostsµÄÇëÇ󼶱ð±ÈDNS¸ß¡£
    ÖªµÀÁËHostsÎļþµÄ¹¤×÷·½Ê½£¬ÄÇÔÚ¾ßÌåʹÓÃÖÐËüÓÐÄÄЩ×÷ÓÃÄØ?
    1¡¢¼Ó¿ìÓòÃû½âÎö
    ¶ÔÓÚÒª¾­³£·ÃÎʵÄÍøÕ¾£¬ÎÒÃÇ¿ÉÒÔͨ¹ýÔÚHostsÖÐÅäÖÃÓòÃûºÍIPµÄÓ³Éä¹Øϵ£¬ÕâÑùµ±ÎÒÃÇÊäÈëÓòÃû¼ÆËã»ú¾ÍÄܺܿì½âÎö³öIP£¬¶ø²»ÓÃÇëÇóÍøÂçÉϵÄDNS·þÎñÆ÷¡£
    2¡¢·½±ã¾ÖÓòÍøÓû§
    Ôںܶ൥λµÄ¾ÖÓòÍøÖУ¬»áÓзþÎñÆ÷Ìṩ¸øÓû§Ê¹Óᣵ«ÓÉÓÚ¾ÖÓòÍøÖÐÒ»°ãºÜÉÙ¼ÜÉèDNS·þÎñÆ÷£¬·ÃÎÊÕâЩ·þÎñÒªÊäÈëÄѼǵÄIPµØÖ·£¬¶Ô²»ÉÙÈËÀ´ËµÏ൱Âé·³¡£ÏÖÔÚ¿ÉÒÔ·Ö±ð¸øÕâЩ·þÎñÆ÷È¡¸öÈÝÒ×¼ÇסµÄÃû×Ö£¬È»ºóÔÚHostsÖн¨Á¢IPÓ³É䣬ÕâÑùÒÔºó·ÃÎʵÄʱºòÎÒÃÇÊäÈëÕâ¸ö·þÎñÆ÷µÄÃû×Ö¾ÍÐÐÁË¡£
    3¡¢ÆÁ±ÎÍøÕ¾
    ÏÖÔÚÓкܶàÍøÕ¾²»¾­¹ýÓû§Í¬Òâ¾Í½«¸÷ÖÖ¸÷ÑùµÄ²å¼þ°²×°µ½ÄãµÄ¼ÆËã»úÖУ¬ÓÐЩ˵²»¶¨¾ÍÊÇľÂí»ò²¡¶¾¡£¶ÔÓÚÕâЩÍøÕ¾ÎÒÃÇ¿ÉÒÔÀûÓÃHosts°Ñ¸ÃÍøÕ¾µÄÓòÃûÓ³Éäµ½´íÎóµÄIP»ò×Ô¼º¼ÆËã»úµÄIP£¬ÕâÑù¾Í²»Ó÷ÃÎÊÁË¡£ÎÒÃÇÔÚHostsдÉÏÒÔÏÂÄÚÈ


Ïà¹ØÎĵµ£º

C/C++±ê×¼¿âʹÓÃ

ÊÕ¼¯ÁË¿´Ò»ÏÂC/C++±ê×¼¿âʹÓõÄÏà¹ØÍøÕ¾£º
GNU¹ÙÍø£º
http://www.gnu.org/
¸ÃÍøÕ¾°üº¬C/C++±ê×¼¿âµÄʹÓ÷¶Àý£¬ÖµµÃ²Î¿¼£º
http://www.cplusplus.com/
ÔÚǶÈëʽµÚÈý·½Èí¼þÒÆֲʱ£¬»áʹÓÃSTLÄ£°å¿â×÷ÏàÓ¦ÒÆÖ²£¬ÈçAndroidƽ̨JNI·â×°¼°ÒÆÖ²µÈ¡£
¸ÃÍøÕ¾½éÉÜstlportµÄʹÓã¬stlportÒѿɳɹ¦ÒÆÖ²ÖÁAndroidµÈǶÈëʽƽ̨£¬²¢Ç ......

linux c socket ¿ª·¢Óë±àÒëʵÀý

ÕâƪÈÕÖ¾»¹ÊÇÏÈ´ÓÒ»¸öÄܹ»ÔËÐÐÆðÀ´µÄÀý×Ó³ö·¢£¬Ò»µ©ÄÜ˳ÀûµÄ¿´µ½³ÌÐòµÄ³É¹¦ÔËÐУ¬ÄÇô½ÓÏÂÀ´µÄʼþÎÒÏëÓ¦¸ÃÊÇÎÊΪʲôÁË£¿ËƺõÕâÑù¸ü¼ÓÈÝÒ×Àí½âºÍÕÆÎÕ¡£
¶ÔÓÚsocket³ÌÐòµÄ¸ÅÄîÕâÀï¾Í²»¶àдÁË£¬µ«ÎÒÏàÐÅ£¬Èç¹ûÄÜ¿´ÍêÕâÕûƪÎÄÕ£¬ÎÒÏàÐŲ»»áÔÙÓÐÕâÑùµÄÒÉÎʵġ£
ÏÂÃ潫±àдһ¸öc/s½á¹¹µÄ³ÌÐò£¬Ö÷Òª¹¦ÄÜÊÇclient½«Ïòserver·¢Ë ......

entry point to c/c++ or Fortran MEX file

http://www.mathworks.com/access/helpdesk/help/techdoc/apiref/mexfunction.html
mexFunction (C and Fortran) -
Entry point to C/C++ or Fortran MEX-file
C Syntax
#include "mex.h"
void mexFunction(int nlhs, mxArray *plhs[], int nrhs,
const mxArray *prhs[]);
Fortran
Syntax
subrouti ......

about pack and align for C/C++

http://msdn.microsoft.com/en-us/library/2e70t5y1(VS.80).aspx
#pragma
pack(  n  )
n : Valid values are 1, 2, 4, 8, and 16.the
alignment of a member will be on a boundary that is either a multiple of 
n
 or
a multiple of the size of the member
,
whichever is smaller.
......

C/C++µ¥Ôª²âÊÔÀíÂÛ¾«Òª£¨¶þ£©

1.2 µ¥Ôª²âÊÔµÄÄ¿±êºÍ·½·¨
    µ¥Ôª²âÊÔµÄÄ¿±êÊÇʲôÄØ£¿¾ÍÊÇÍêÕû¼ì²â´úÂëµ¥ÔªµÄ¹¦ÄÜÂß¼­¡£ÕÒ³ö´úÂëµ¥Ôª±¾ÉíµÄËùÓй¦ÄÜÂß¼­´íÎ󣬾ßÌåÀ´Ëµ£¬¾ÍÊǼì²â¶ÔÊý¾ÝµÄ¸÷ÖÖ·ÖÀàÊÇ·ñ¿¼ÂÇÈ«Ã棬´¦ÀíÊÇ·ñÕýÈ·¡£µ¥Ôª²âÊÔ²¢²»ÊÇÓÃÀ´´úÌæϵͳ²âÊÔ¡¢ÐÔÄܲâÊԵģ¬ËüµÄÄ¿±êÏ൱Ã÷È·£¬¾ÍÊǼì²â´úÂëµ¥Ôª±¾ÉíµÄ¹¦ÄÜÂß¼­´íÎó¡£
& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ