摘要:        
/** *	@brief	冒泡排序法 * *	@param arr 需要排序的数组 */-(void)BubbleSort:(NSMutableArray *)arr{ // 取第一个与其邻接的对比,若大则交换 for (int i=0; ii; j--) { int temp1 = [[arr objectAtIndex:j]intValue]; int temp2 = [[arr objectAtIndex:j-1]intValue]; if (temp1 temp2) // 从大到...    阅读全文
        
            posted @ 2013-12-06 16:38
菜鸟程序猿
阅读(422)
评论(0)
推荐(0)
        
        
 
                    
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号