C++ѧϰժҪ֮Èý£º¼Ì³ÐºÍÅÉÉú
»òÈ«²¿ÓÖÊÇ´Ó ÁíÒ»¸ö¹²Í¬»ùÀàÅÉÉú¶øÀ´µÄ£¬ÕâЩֱ½Ó»ùÀàÖдÓÉÏÒ»¼¶»ùÀà¼Ì³ÐÀ´µÄ³ÉÔ±ÓµÓÐÏàͬµÄÃû³Æ£¬ÔÚÅÉÉúÀàµÄ¶Ô ÏóÖУ¬ÕâЩͬÃû³ÉÔ±ÔÚÄÚ´æÖÐͬʱӵÓжà¸ö¿½±´£¬ÈçºÎ½øÐзֱæÄØ£¿ÓÐÁ½ÖÖ·½·¨£¬Ò»ÊÇʹÓÃ×÷ÓÃÓòÔËËã·û Ψһ±êÖIJ¢·Ö±ð·ÃÎÊËüÃÇ£»¶þÊǽ«Ö±½Ó»ùÀàµÄ¹²Í¬Äã»ùÀàÉèÖÃΪÐé»ùÀà¡£
£¨1£©Ê¹ÓÃ×÷ÓÃÓòÔËËã·û ·½·¨ ÕâÖÖ·½·¨¾ÍÊÇÔÚÐèÒª·ÃÎʵijÉÔ±ÃûÇ°¼ÓÉÏÖ±½Ó»ùÀàÃûºÍ×÷ÓÃÓòÔËËã·û“£º£º“¡£ Æä¸ñʽÊÇ£º Ö±½Ó»ùÀàÃû£º£ºÊý¾Ý³ÉÔ±Ãû Ö±½Ó»ùÀàÃû£º³ÉÔ±º¯ÊýÃû£¨²ÎÊý±í£© £¨2£© Ðé»ùÀàµÄ·½·¨ ¸Ã·½·¨¾ÍÊǽ«Ö±½Ó»ùÀàµÄ¹²Í¬»ùÀàÉèÖÃΪÐé»ùÀ࣬¼´ÔÚ»ùÀàµÄ·ÃÎÊ·½Ê½Ç°¼ÓÉϹؼü ×Ö“virtual“£¬ÉùÃ÷Ðé»ùÀàµÄ¸ñʽÈçÏ£º class ÅÉÉúÀàÃû£ºvirtual ·ÃÎÊ·½Ê½ »ùÀà Ãû { //ÉùÃ÷ÅÉÉúÀà³ÉÔ±}£» Ðé»ùÀàËäÈ»±»Ò»¸öÅÉÉúÀà¼ä½ÓµØ¶à´Î¼Ì³Ð£¬µ«ÅÉÉúÀàÈ´Ö»¼Ì³Ð Ò»·Ý¸Ã»ùÀàµÄ³ÉÔ±£¬ÕâÑù¾Í±ÜÃâÁËÔÚÅÉÉúÀàÖзÃÎÊÕâЩ³ÉԱʱµÄ¶þÒåÐÔ¡£ 6£®Ðé»ùÀà»úÖÆÏµĹ¹Ôì º¯ÊýµÄÖ´ÐÐ˳Ðò Ðé»ùÀà»úÖÆÏµĹ¹Ô캯ÊýµÄÖ´ÐÐ˳ÐòÓëÒ»°ã¶àÖؼ̳ÐÏµĹ¹Ô캯ÊýµÄÖ´ÐÐ˳ÐòÊÇ ²»Í¬µÄ£¬ÆäÖ´ÐÐ˳ÐòÈçÏ£º £¨1£©Ò»¸öÀàµÄËùÓÐÖ±½Ó»ùÀàÖУ¬Ðé»ùÀàµÄ¹¹Ô캯ÊýÔÚ·ÇÐé»ùÀà֮ǰµ÷ Óã» £¨2£©Èç¹ûÒ»¸öÀàµÄËùÓÐÖ±½Ó»ùÀàÖÐÓжà¸öÐé»ùÀ࣬ÔòÕâЩÐé»ùÀàµÄ¹¹Ô캯ÊýµÄÖ´ÐÐ˳ÐòÓëÔÚ ÅÉÉúÀàÖеÄ˵Ã÷µÄ´ÎÐòÏàͬ£» £¨3£©ÈôÐé»ùÀàÓÉ·ÇÐé»ùÀàÅÉÉú¶øÀ´£¬ÔòÈÔÈ»Ïȵ÷ÓûùÀ๹Ô캯Êý£¬ ÔÙ°´ÕÕÅÉÉúÀàÖй¹Ô캯ÊýµÄÖ´ÐÐ˳Ðòµ÷ÓᣠÏà¹ØÎÄÕ C++ѧϰժҪ֮¶þ£º¹¹Ô캯ÊýºÍÎö¹¹º¯Êý http://www.bianceng.cn/Programming/cplus/200911/12302.htm C++ѧϰժҪ֮һ£ºÀàºÍ¶ÔÏó http://www.bianceng.cn/Programming/cplus/200911/12301.htm |
ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»! |
- °Ù¶È´ÊÌõ´Óϸ½Ú×ÅÊÖ Èý´óÒªËز»ÈݺöÊÓ
- PhotoshopÊó»æ½Ì³Ì:ÇåеĶ̷¢¾«ÉñµÄÃÀÅ®
- ¼ÓÔØÍⲿͼƬµÄ°ÙÒ¶´°Ð§¹û
- FlashÒýµ¼ÏßÖÆ×÷Ñ©»¨Æ®Æ®¶¯»
- ÔÚUNIXÏ´´½¨Ò»¸öÈíÁ¬½Ó
- J2SE×ۺϣº³¹µ×Àí½âJavaHelp½á¹¹µÄºÃ´¦ - ±à³ÌÈëÃÅÍø
- PhotoShop»æÖÆÖʸÐͼ±ê
- Flash MX 2004ÊÓƵ½Ì³Ì³¬ËÙÈëÃÅϵÁÐ(2)
- ½ûÖ¹linuxϵͳÄÚÓÐЧÕÊ»§µÄÔÝʱµÇ½(ͼÎÄ)
- ÈçºÎͨ¹ýÍøÂç°²×°linuxϵͳ