cÏÝÚåÓëȱÏÝ ÐĵÃÌå»á 1
½ñÌì±È½ÏÀÁ¶è£¬Ã»×öÌ⣬ֻÊÇ¿´ÁËÒ»µãÄDZ¾cÏÝÚåÓëȱÏÝ£¬ËµÊµ»°¶ÁÁ˲»¶àµ«Ã÷ÏÔÄܸоõ³öÕâÊÇÒ»±¾ºÃÊ飬¸Ð¾õ¶ÔÎÒÀ´Ëµ¸ÕºÃ£¬²»ÊÇ»ù´¡Ê飬µ«Ò²»ù±¾ÄÜ¿´¶®£¬¶øÇÒÄÜѧµ½ºÃ¶à¶«Î÷£¬µ«½ñÌìÖ»¿´ÁËÈýÕ£¬Ö÷ÒªÊÇϾüÆìÁË£¬囧£¬ÎÒÒ²Ö»ÄÜ°ÑÎÒѧµ½µÄ×ܽáÏÂÀ´£¬Ñ§ÁË×ܱÈÒ»µã¶¼Ã»Ñ§ÒªºÃ£¬ÎÒÒ²Ö»ÄÜÕâÑù°²Î¿×Ô¼ºÁË¡£
Ê×ÏȾÍÊÇÒ»¸öºÜ»ù±¾µÄÎÊÌ⣬µ«ÎÒÒÔÇ°²»ÖªµÀµÄ£¬¾ÍÊÇcÓïÑÔ±àÒëÆ÷ÈçºÎ½øÐдʷ¨·ÖÎö£¬¾Í±ÈÈç˵ÏÂÃæÕâ¸ö±í´ïʽa---b,µ±±àÒëÆ÷Äõ½Õâ¸ö±í´ïʽʱ£¬Ëü»áÔõô·ÖÎöÄØ?ÏÖÔÚÎÒÖªµÀÁË£¬cÓïÑԵıàÒëÆ÷×ñÑ“Ì°ÐÄ·¨”£¬ËùνµÄÌ°ÐÄ·¨¾ÍÊDZàÒëÆ÷´Ó×óµ½ÓÒÒ»¸öÒ»¸ö×Ö·û¶ÁÈ룬Èç¹û¸Ã×Ö·ûÄÜ×é³ÉÒ»¸ö·ûºÅ£¬ÄǾÍÔÙ¶ÁÈëÏÂÒ»¸ö×Ö·û£¬ÅжÏÒѾ¶ÁÈëµÄ×Ö·û´®ÊÇ·ñ¿ÉÄÜÊÇÒ»¸ö·ûºÅµÄ×é³É²¿·Ö£¬Èç¹ûÊÇÄǾÍÔÙ¶ÁÈëÒ»¸ö×Ö·û£¬½Ó×ÅÅжÏÕâ3¸ö×Ö·û×é³ÉµÄ×Ö·û´®ÊÇ·ñ¿ÉÄÜÊÇÒ»¸ö·ûºÅµÄ×é³É²¿·Ö£¬Èç¹ûÊÇ£¬ÄǾͽÓ×ŶÁ£¬Ö±µ½Ëù¶ÁÈëµÄ×Ö·û´®²»¿ÉÄÜ×é³ÉÒ»¸ö·ûºÅ£¬ËùÒÔ¶ÔÓÚÉÏÊöµÄ±í´ïʽ£¬ÕýÈ·µÄÀí½âÊÇ£¨a--£©-b£¬»¹ÓÐÏà¹ØµÄÒ»µãÊÇ·ûºÅ¼ä¿ÉÒÔÓпոñ£¬µ«Ò»¸ö·ûºÅÄÚÓпոñºÍû¿Õ¸ñÊÇÓÐÇø±ðµÄ£¬»¹ÊÇÄÃÉÏÊö±í´ïʽ˵£¬£¨1£©a-- -b£¨2£©a- --b£¬ÕâÁ½¸öÊDz»Í¬µÄ£¬µÚÒ»¸öºÍÔʼµÄÊÇͬһ¸öÒâ˼¡£»¹ÓÐÒ»¸öµäÐ͵ÄÀý×Ó¾ÍÊÇy=x/*p,±¾ÒâpÊÇÒ»¸öÖ¸ÏòÕûÊýµÄÖ¸Õ룬Ïë°Ñx³ýÒÔpËùÖ¸ÏòµÄÊý¸³¸øy£¬µ«ÊÂʵÉÏ/*»á±»±àÒëÆ÷½âÊÍΪעÊ͵ÄÒ»²¿·Ö¡£
µÚ¶þ¾ÍÊÇÊéÀï¶ÔCÓïÑÔµ¥ÒýºÅºÍË«ÒýºÅÇø±ðµÄ²ûÊö£¬CÓïÑÔÓõ¥ÒýºÅÒýÆðµÄÒ»¸ö×Ö·ûʵ¼ÊÉÏ´ú±íÒ»¸öÕûÊý£¬ÕûÊýÖµ¶ÔÓ¦ÓÚ¸Ã×Ö·ûÔÚ±àÒëÆ÷²ÉÓõÄ×Ö·û¼¯ÖеÄÐòÁÐÖµ¡£Ò»°ã±àÒëÆ÷²ÉÓõÄÊÇASCII×Ö·û¼¯¡£ÓÃË«ÒýºÅÒýÆðµÄ×Ö·û´®´ú±íµÄÊÇÖ¸ÏòÒ»¸öÎÞÃûÊý×éÆðʼ×Ö·ûµÄÖ¸Õ룬¸ÃÊý×鱻˫ÒýºÅÖ®¼äµÄ×Ö·ûºÍÒ»¸ö¶îÍâµÄ¶þ½øÖÆֵΪÁãµÄ×Ö·û'\0'³õʼ»¯¡£
µÚÈýµã¾ÍÊÇÀ´¿´Ò»ÏÂÕâ¸ö±í´ïʽ(*(void(*)( ) )0)( ),µÚÒ»ÑÛ¿´È·Êµ±È½ÏÔΣ¬µ«¾¹ýËûµÄ½âÊͺóÎÒ¶®ÁË£¬Ê×ÏÈÊÇ£¨void(*)( )£©,Õâ×ÜÌåÊǸöÇ¿ÖÆÀàÐÍת»¯£¬À¨ºÅÀïÃæµÄÊǸöº¯ÊýÖ¸Õ룬Ҳ¾ÍÊÇ˵°Ñ0Õâ¸öµØַת»¯ÎªÒ»¸öº¯ÊýÖ¸Õ룬ȻºóÖ´ÐÐÕâ¸öµØÖ·Éϵĺ¯Êý¡£ÕâÀﻹÓиöº¯ÊýÉùÃ÷£¬¿´µÄ²»Ì«¶®£¬Áô×÷ÒÔºóµÄÒ»¸öÎÊÌâ°Évoid£¨*signal( int ,void(*)( int ) )£©( int );
×îºóÒ»¸ö¾ÍÊÇswitchÎÞbreakµÄÃîÓã¬ÓÐÏÂÃæÒ»¸öÀý×Ó£¬¾ÍÊDZàÒëÆ÷ÔÚ²éÕÒ·ûºÅʱҪÌø¹ý³ÌÐòÖеĿոñ£¬ÖƱíºÍ»»Ðзû£¬±àÒëÆ÷¶ÔÈýÕߵĴ¦ÀíÊÇÏàͬµÄ£¬³ýÁËÓöµ½»»Ðзûʱ³ÌÐ
Ïà¹ØÎĵµ£º
Boss˵£¬Òª¿´OpenGL£¬¿´ÁË¿ìÒ»¸öÔ£¬×ÜËã³öÁ˸öÏñÑùµÄ¶«Î÷£¬ÓÃCдÁ˸ö3DÃÔ¹¬£¬
ËäȻֻÓÐ350ÐÐ
´úÂ룬²»¹ý±ßѧ±ßд£¬×ã×ãдÁËÒ»ÖÜʱ¼ä£¬»¹ÊÇСÓгɾ͸еģ¬»î»î»î£¡
&n ......
const ÊÇÔÚ³ÌÐòÖзdz£ÖØÒª¡£ÔÚÕâÀïÎÒ×öһϼòµ¥µÄ½éÉÜ¡£
1.const »ù´¡
constÓÐÁ½ÖÖÐÎʽ:
a) const Type var;
È磺int a =10;const int * var=&a; ÄÇôvar¾ÍÊdz£Á¿Ö¸Õ룬±íÃ÷ÊÇÖ¸Ïò³£Á¿µÄÖ¸Õ룬Ҳ¾ÍÊÇ˵aµÄÖµ²»Äܸı䡣
......
1.¸ÅÂÛ
¡¡ÔËÐÐʱ¿âÊdzÌÐòÔÚÔËÐÐʱËùÐèÒªµÄ¿âÎļþ£¬Í¨³£ÔËÐÐʱ¿âÊÇÒÔLIB»òDLLÐÎʽÌṩµÄ¡£CÔËÐÐʱ¿âµ®ÉúÓÚ20ÊÀ¼Í70Äê´ú£¬µ±Ê±µÄ³ÌÐòÊÀ½ç»¹ºÜµ¥´¿£¬Ó¦ÓóÌÐò¶¼Êǵ¥Ï̵߳ģ¬¶àÈÎÎñ»ò¶àÏ̻߳úÖÆÔÚ´Ëʱ»¹ÊôÓÚйÛÄî¡£ËùÒÔÕâ¸öʱÆÚµÄCÔËÐÐʱ¿â¶¼Êǵ¥Ï̵߳ġ£
Ëæ×ŲÙ×÷ϵͳ¶àÏ̼߳¼ÊõµÄ·¢Õ¹£¬×î³õµÄCÔËÐÐʱ¿âÎÞ·¨Âú×ã³ÌÐòµÄÐèÇó£ ......
ת£ºhttp://school.ogdev.net/ArticleShow.asp?categoryid=10&id=6019
º¯ÊýÖ¸ÕëÊý×éµÄÃîÓÃ
±ÊÕßÔÚ¿ª·¢Ä³Èí¼þ¹ý³ÌÖÐÓöµ½ÕâÑùÒ»¸öÎÊÌ⣬ǰ¼¶Ä£¿é´«¸øÎÒ¶þ½øÖÆÊý¾Ý£¬ÊäÈë²ÎÊýΪ char* bufferºÍ int length£¬bufferÊÇÊý¾ÝµÄÊ×µØÖ·£¬length±íʾÕâÅúÊý¾ÝµÄ³¤¶È¡£Êý¾ÝµÄÌصãÊÇ£º³¤¶È²»¶¨£¬ÀàÐͲ»¶¨£¬ÓɵÚÒ»¸ö×Ö½Ú£¨buffer[0] ......
This is Edition 2.2.10 of `The `indent' Manual', for Indent Version
2.2.10, last updated 23 July 2008.
Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996 Free Software
Foundation, Inc. Copyright (C) 1995, 1996 Joseph Arceneaux. Copyright
(C) 1999 Carlo Wood. Copyright (C) 2001 David Ingamell ......