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

C×Ö·û´®×ܽá

×Ö·ûÊý×éºÍ×Ö·û´®    
 
&×Ö·ûÊý×éºÍ×Ö·û´®µÄ¸ÅÄî  &×Ö·ûÊý×éµÄ³õʼ»¯ 
&×Ö·û´®µÄÊäÈëÊä³ö  &×ۺϾÙÀý 
×Ö·ûÊý×éºÍ×Ö·û´®µÄ¸ÅÄî
    ×Ö·ûÊý×éÊÇÔªËØÀàÐÍΪ×Ö·ûµÄÊý×é ,Ëü¼È¾ßÓÐÆÕͨÊý×éµÄÒ»°ãÐÔÖÊ ,ÓÖ¾ßÓÐijЩÌØÊâÐÔÖÊ¡£
    ×Ö·û´®³£Á¿ÊÇÓÃË«ÒýºÅ°üΧµÄ×Ö·ûÐòÁС£´æ´¢×Ö·û´®³£Á¿Ê±£¬ÏµÍ³»áÔÚ×Ö·ûÐòÁкó×Ô¶¯¼ÓÉÏ '\0',±êÖ¾×Ö·û´®µÄ½áÊø¡£×Ö·û´®µÄ³¤¶È¶¨ÒåΪ×Ö·û´®ÖеÄÓÐЧ×Ö·ûÊý£¬²»°üÀ¨½áÊø±êÖ¾ '\0'ºÍË«ÒýºÅ¡£ £¨×Ö·û´®³£Á¿ÊDz»Äܱ»Ð޸ĵģ¬È磺char *p="hello";p[0]='x'; ÊǻᷢÉúÄÚ´æ´íÎóµÄ£©
    ×Ö·û´®±äÁ¿ÊÇÒÔ '\0'×÷Ϊ½áÊø±êÖ¾µÄ×Ö·ûÊý×é¡£×Ö·û´®±äÁ¿ÓÃÓÚ´æ´¢ºÍ´¦Àí×Ö·û´®³£Á¿¡£ÔÚÊéÖÐͳ³ÆΪ×Ö·û´®µÄ£¬¼È¿ÉÄÜÊÇ×Ö·û´®³£Á¿Ò²¿ÉÄÜÊÇ´æ´¢ÁË×Ö·û´®³£Á¿µÄ×Ö·û´®±äÁ¿£¬¼´ÌØÊâµÄ×Ö·ûÊý×é¡£
     ×Ö·ûÊý×éÓÐÁ½ÖÖÓ÷¨ :Ò»Êǵ±×÷×Ö·ûµÄÊý×éÀ´Ê¹Óá£ÕâʱµÄÓ÷¨ÓëÕûÊýµÄÊý×é¡¢   ʵÊýµÄÊý×éµÈÏàͬ£¬¶Ô×Ö·ûÊý×éµÄÊäÈë¡¢Êä³ö¡¢¸³Öµ¡¢ÒýÓõȶ¼ÊÇÕë¶Ôµ¥¸öµÄÔªËؽøÐС£¶þÊǸüΪÖØÒªµÄÓ÷¨¼´´æ´¢¡¢´¦Àí×Ö·û´®¡£ÕâʱËü³ýÁË¿ÉÒÔÏñÆÕͨÊý×éÒ»ÑùʹÓÃÍ⣬»¹¿ÉÒÔ°Ñ×Ö·û´®×÷Ϊһ¸öÕûÌå½øÐвÙ×÷¡£
 
×Ö·ûÊý×éµÄ³õʼ»¯ 
(1)ÓÃ×Ö·û¶Ô×Ö·ûÊý×é³õʼ»¯   Õâʱ°Ñ×Ö·ûÊý×éµ±×÷ÆÕͨÊý×é¿´´ý ,  ²úÉúµÄÊý×é²»»áÓнáÊø·û '\0'¡£µ±Êý¾ÝÁ¿ºÜ´óʱ£¬Ê¹ÓÃÕâÖÖ·½·¨µÄ¹¤×÷Á¿ÊÇ·±Öصġ£
    Àý£º char rat[5]={'H','E','L','L','O'};
(2)ÓÃ×Ö·û´®³£Á¿¶Ô×Ö·ûÊý×é³õʼ»¯ £¬Õâʱ°Ñ×Ö·ûÊý×éµ±×÷×Ö·û´®±äÁ¿¿´´ý¡£
    Àý£º char panic[6]={"HELLO");
    Õâʱ´æ·ÅÔÚÊý×é panicÖеÄ×Ö·û³ýÁË H,E,L,L,OÖ®Í⻹ÓнáÊø±êÖ¾ '\0'£¬Òò´ËÓëÏÂÃæµÄ³õʼ»¯µÈ¼Û£º
    char panic[6]={'H','E','L','L','O'};
    ×¢Òâ :  µÚ¶þ¸ö˵Ã÷Óï¾äÖÐÓÐ 6  ¸ö×Ö·û ,  Òò´Ë×Ö·ûÊý×é panic  µÄ³¤¶ÈÊÇ 6,  ¶ø×Ö·û´® "HELLO"µÄ³¤¶ÈÈ´ÊÇ 5,²»°Ñ '\0'¼ÆËãÔÚÄÚ¡£
    CÓïÑÔÒ²ÔÊÐíÔÚÓÃ×Ö·û´®³õʼ»¯Ê±Ê¡ÂÔ»¨À¨ºÅ¡£
    char panic[]="HELLO";
    Èç¹ûÔÚ˵Ã÷Óï¾äÖÐÖ¸¶¨ÁËÊý×éµÄ³¤¶È£¬ÄÇôÆä´óС²»µÃСÓÚ³õʼ»¯×Ö·û´®µÄ³¤¶È¡£¶àÓàµÄÔªËØλÖñ»ÏµÍ³×Ô¶¯³õʼ»¯Îª


Ïà¹ØÎĵµ£º

dz̸CÓëC++µÄÉè¼ÆÓë±à³Ì·ç¸ñ£¨¶þ£©

ÉÏ´Î×ܽáÁËC++£¨ÃæÏò¶ÔÏó£©Éè¼ÆµÄºËÐÄ˼Ï룬²¢ÇÒÀý¾ÙÁËʹÓÃÀàÄ£ÐÍÀ´Ìæ´úifºÍswitchµÄÒ»ÖÖ½ÏΪµäÐ͵ÄÇé¿ö¡£ÏÂÃæÏëÀ´Ì¸Ì¸C++ÔÚ±àÂë·½ÃæµÄÌص㡣
ÔںܶྭµäµÄC++½Ì³ÌÖж¼ÓÐÒ»¸ö½¨Ò飺Ӧ¾¡Á¿Ê¹Óû§´úÂ루¿âµÄʹÓÃÕߣ©¿´ÆðÀ´¶ÌС¶ø¼òµ¥¡£°´ÕÕ³£Ê¶£¬¼òµ¥µÄ´úÂëͨ³£Òª±È´ó¶ÎµÄ´úÂëºÃÀí½â£¬¶øÓû§´úÂëͨ³£ÊµÏÖµÄÊÇ×îÉϲãµÄ¹¦ÄÜ»òÕ ......

C/C++¹Ø¼ü×Östatic,const,inline,define,typedef

C/C++¹Ø¼ü×Östatic,const,inline,define,typedef 


document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
......

c/c++ÃæÊÔÌâ

c/c++ÃæÊÔÌâ
¡¡¡¡±¾ÎĵÄд×÷Ä¿µÄ²¢²»ÔÚÓÚÌṩC/C++³ÌÐòÔ±ÇóÖ°ÃæÊÔÖ¸µ¼£¬¶øÖ¼ÔÚ´Ó¼¼ÊõÉÏ·ÖÎöÃæÊÔÌâµÄÄÚº­¡£ÎÄÖеĴó¶àÊýÃæÊÔÌâÀ´×Ô¸÷´óÂÛ̳£¬²¿·ÖÊÔÌâ½â´ðÒ²²Î¿¼ÁËÍøÓѵÄÒâ¼û¡£
¡¡¡¡Ðí¶àÃæÊÔÌâ¿´ËƼòµ¥£¬È´ÐèÒªÉîºñµÄ»ù±¾¹¦²ÅÄܸø³öÍêÃÀµÄ½â´ð¡£ÆóÒµÒªÇóÃæÊÔÕßдһ¸ö×î¼òµ¥µÄstrcpyº¯Êý¶¼¿É¿´³öÃæÊÔÕßÔÚ¼¼ÊõÉϾ¿¾¹´ïµ½ÁËÔ ......

java+swing C/sģʽµÄsocket±à³ÌÓ볤¶ÌÁ¬½Ó

ʲôÊÇsocket
³¤Á¬½ÓÓë¶ÌÁ¬½Ó
Ëùν³¤Á¬½Ó£¬Ö¸ÔÚÒ»¸öTCPÁ¬½ÓÉÏ¿ÉÒÔÁ¬Ðø·¢ËͶà¸öÊý¾Ý°ü£¬ÔÚTCPÁ¬½Ó±£³ÖÆڼ䣬Èç¹ûûÓÐÊý¾Ý°ü·¢ËÍ£¬ÐèҪ˫·½·¢¼ì²â°üÒÔά³Ö´ËÁ¬½Ó£¬Ò»°ãÐèÒª×Ô¼º×öÔÚÏßά³Ö¡£
¶ÌÁ¬½ÓÊÇָͨÐÅË«·½ÓÐÊý¾Ý½»»¥Ê±£¬¾Í½¨Á¢Ò»¸öTCPÁ¬½Ó£¬Êý¾Ý·¢ËÍÍê³Éºó£¬Ôò¶Ï¿ª´ËTCPÁ¬½Ó£¬Ò»°ãÒøÐж¼Ê¹ÓöÌÁ¬½Ó¡£ 
±ÈÈçht ......

CRT (C run time library)

CRT (C run-time library)
Ò» ²úÉú
ÔËÐÐʱ¿âÊdzÌÐòÔÚÔËÐÐʱËùÐèÒªµÄ¿âÎļþ£¬Í¨³£ÒÔLIB»òDLLÐÎʽÌṩ¡£
CÔËÐÐʱ¿â¾ÍÊÇC run-time library£¬µ®ÉúÓÚ20ÊÀ¼Í70Äê´ú£¬ÊÇC¶ø·ÇC++ÓïÑÔÊÀ½çµÄ¸ÅÄC³ÌÐòÔËÐÐʱÐèÒªÕâЩ¿âÖеĺ¯Êý¡£
C ÓïÑÔÊÇËùνµÄ“СÄں˔ÓïÑÔ£¬¾ÍÆäÓïÑÔ±¾ÉíÀ´ËµºÜС£¨²»¶àµÄ¹Ø¼ü×Ö£¬³ÌÐòÁ÷³Ì¿ØÖÆ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ