¹ØÓÚperlÖкÍCÖеÄsort»úÖÆ £¨×ªÔØ£©
¹ØÓÚperlÖкÍCÖеÄsort»úÖÆ
£¨×ªÔØ£©
ϸ¶ÁC++ primer£¬ÖÕÓÚÀí½âÁËÒ»Ö±±È½ÏÒÉ»óµÄperlºÍCµÄsortº¯Êý»úÖÆ¡£ÎÒµ½²»ÊÇÒÉ»óËüµÄÓ÷¨£¬¶øÊǺÜÒÉ»óËüµÄÐÎʽ£¬ÎªÊ²Ã´Òª´«µÝÒ»¸ö×Ó³ÌÐòµÄÄäÃûÒýÓøøËüÄØ£¬¶øÇÒÐÎʽ»¹ºÜ¹Å¹Ö£¬Ò»¶¨ÒªÊÇ$a<$b£¬$a<=>$bÖ®ÀàµÄ¡£ÒªÇóÑϸñÇҹŹ֡£
½ñҹͻȻ¿´µ½p.384Ò³£¬¿´µ½ÊéÉ϶ÔquicksortÅÅÐòËã·¨µÄ½²½âÖÕÓÚŪÃ÷°×ÁËΪʲôҪ´«µÝÒ»¸öÈç´Ë¹Å¹ÖµÄ×Ó³ÌÐò£¬²¢ÂÔ˼¿¼Ò»Ï£¬ÍÆÏë³öperl¶ÔϱêÅÅÐòµÄÔÀíÒÔ¼°ÎªºÎÊéÉÏ˵ϱêÅÅÐòÒª¿ì£¨¶ÔÒ»¸ö×Ö³¤µÄÖ¸Õë½øÐн»»»¶ø²»ÊǶÔÄÚ´æÊý¾Ý½øÐн»»»£¬³ý·ÇÊý×éµÄÄÚÈÝÊdz¬³¤×Ö·û´®Ö®ÀàµÄ¡£ÎÒµ¹ÊÇÔø¾ÊÔ¹ýϱêÅÅÐò£¬È·ÊµÒª±ÈÊý×éÖ±½ÓÅÅÐòÒª¿ì²»ÉÙ£©¡£
ÁíÍ⣬¹ØÓÚperlµÄreferenceÕâ¸öÃû×ÖÆðÃû¸Ðµ½ºÜÆæ¹Ö¡£Õâ¸öÃû×ÖÔÚÆäËüÓïÑÔÖж¼Òâζ×űðÃû£¬Ï൱ÓÚperlµÄalias»úÖÆ¡£ºÍperlÖÐʵ¼ÊµÄrefÓ¦ÓÃÍêÈ«²»´î±ß¡£
ÓÐÈ˰ÑperlµÄref»úÖÆ³ÆÎªÖ¸Õ룬¿´ÆðÀ´µ¹ÊǷdz£µÄÏñÁË£¬¿Éϧ×î´óµÄÎÊÌâÊÇperlµÄref¸ù±¾²»Ö§³ÖpointerËù±ØÓеÄ×ÔÔö++Ö®ÀàµÄ²Ù×÷(ËüµÄ×ÔÔö²Ù×÷¾ÓÈ»ÊÇÊä³öÒ»¸öÕûÊý£¿)¡£
¸öÈËÒþÔ¼¾õµÃ£¬perlµÄref»úÖÆµ¹ÊǺÍSTLÖеÄiterator·Ç³£ÉñËÆ£¬×ÔÓÉ£¬Êܵ½±£»¤È´ÓÃÆðÀ´ÇáËÉ£¬Ç¿´ó¡£ÔÚºÜ¶à·½Ãæ±Èiterator¸ü×ÔÓÉ£¬Òò´ËÒ²ÊÇÎÒϲ»¶ÓÃperlµÄrefµØÔÒò¡£Ò²ÐílarryÕæµÄºÜÊÜSTLµÄÓ°Ï죿ҲÐíperlÔÚij·½Ãæ×ߵøüԶһЩÁË¡£
ÆäʵºÜÏ£Íûperl 6ÄܰÑref»úÖÆ¸üÉÏÒ»²½£¬½è¼øiteratorµÄÓŵã(¿ÉϧÎÒÔÚperl 6µÄRFCÖÐûÓп´µ½ÓйصÄÒâÏò)¡£perl 6˵Ҫ×öÒ»¸öÍêÈ«Object-OrientµÄÓïÑÔ£¬ÆäʵÎÒ¸üÏ£ÍûËüÄÜ×öÒ»¸öGenericµÄÓïÑÔ(ÔÚijЩ·½Ã棬ÎÒ¾õµÃperl 5±ÈSTL¸üGeneric£¬ÒªÊÇÔÙ½è¼øÒ»ÏÂtemplatesģʽ¾ÍºÃÁË)
ºú˵ÁËЩ¸ÐÏ룬ºÜ¶àµØ·½ÔÀíÖ»ÊÇÓдËÍÆ±Ë£¬Ã»Óп´¹ýÓйصÄperlÔ´Â룬²»Ò»¶¨ÕýÈ·¡£
Ïà¹ØÎĵµ£º
from:×ÞöεÄרÀ¸
ʲôʱºòÐèÒª´´½¨Ï̳߳ØÄØ£¿¼òµ¥µÄ˵£¬Èç¹ûÒ»¸öÓ¦ÓÃÐèҪƵ·±µÄ´´½¨ºÍÏú»ÙỊ̈߳¬¶øÈÎÎñÖ´ÐеÄʱ¼äÓַdz£¶Ì£¬ÕâÑùÏ̴߳´½¨ºÍÏú»ÙµÄ´øÀ´µÄ¿ªÏú¾Í²»ÈݺöÊÓ£¬ÕâʱҲÊÇÏ̳߳ظóö³¡µÄ»ú»áÁË¡£Èç¹ûÏ̴߳´½¨ºÍÏú»Ùʱ¼äÏà±ÈÈÎÎñÖ´ÐÐʱ¼ä¿ÉÒÔºöÂÔ²»¼Æ£¬ÔòûÓбØÒªÊ¹ÓÃÏ̳߳ØÁË¡£
&n ......
ǰ¼¸Ìì¸ãÒ»¸öÏîÄ¿Éæ¼°µ½C/C++»ìºÏ±à³Ì£¬ÔÚKeilϱàÒëʱÌáʾ£º
error: #800:this declaration may not have extern "C" linkage
error: At end of source : #67:expected a "}"
µ±Ê±Á¢ÂíÏëµ½ÊÇCºÍC++±à³ÌʱÐèÒªextern "C"£¬ÂíÉÏÊÔÁËÊÔ£¬È»ºóÐû¸æÊ§°Ü¡£
ÒòΪ˫»÷ºóÌáʾ³ö´íµÄµØ·½ÊÇtemplate<clase T>,ÒÔΪÊÇkeil²»Ö ......
//yichiµÄc´úÂë±àд¹æ·¶£º091216
//Ò»¡¢³£Á¿£º
// ËùÓк궨Ò塢ö¾Ù³£ÊýºÍconst±äÁ¿È«²¿ÓÉ´óд×Öĸ¹¹³É£¬´ÊÓë´ÊÖ®¼äÓÃÏ»®Ïß·Ö¿ª£¬ÀýÈç#define GPS_WORK_STATUS 0x30
//¶þ¡¢±äÁ¿£º
// ¾Ö²¿±äÁ¿È«²¿ÓÉСд×Öĸ¹¹³É£¬´ÊÓë´ÊÖ®¼äÓÃÏ»®Ïß·Ö¿ª£¬ÀýÈçuint8 ack_delay_time[4];È«¾Ö±äÁ¿Óë¾Ö²¿±äÁ¿ ......
ÔÚVSÖÐдSQLÓï¾äµÄʱºò£¬Ç§ÍòÍòǧҪСÐÄÔÙСÐÄ£¬±ÈÈç ˵ Êý¾ÝÀàÐÍµÄÆ¥Å䣬 µ¥ÒýºÅ£¨Õâ¸öÄܰÑÈËÃÔËÀ£©
where ×Ó¾äÖпÉǧÍò²»ÄÜÓпոñ£¨µ±²éѯÌõ¼þΪ×Ö·û´®µÄʱºòÄܰÑÄãŪ·è£¬ÎÒŪÕâ¸öµÄʱºò¶¼·èÁ˼¸´ÎÁË£¬Ê²Ã´¶¼¶Ô¾ÍÊDz鲻³öÀ´£¬µ÷ÊÔÁËN±é²Å·¢ÏÖ¡££©²»ÐÐÁË£¬³Ô·¹È¥£¬ÔÙ²»³Ô¿´¼û»îÈ˶¼ÏëÒ§ÁË¡£ ......
ÈçÏ´úÂë±àÒëÔËÐоͻáÌáʾR6002´íÎó #include
struct xxx{
float score;
};
int main()
{
xxx* p = new xxx;
scanf( "%f" , &p->score );
delete p;
} ½â¾ö·½°¸ºÜ¼òµ¥ int main()
{
xxx* p ......