C#实现选择排序,选择排序和冒泡有什么区别
using   System;   
 namespace   Test_BubbleSort 
 { 
 	class   Class1 
 	{ 
 		[STAThread] 
 		static   void   Main(string[]   args) 
 		{ 
 			int   []   array=new   int[3]; 
 			int   i=0; 
 			while(i <3) 
 			{ 
 				Console.Write( "请输入第{0}个数: ",i+1); 
 				array[i]   =   Convert.ToInt32(Console.ReadLine()); 
 				i++; 
 			} 
 			int   y; 
 			for(int   x=0;x <3;x++) 
 			{ 
 				for(y=0;y <3-1;y++) 
 				{ 
 					if(array[y]> array[y+1]) 
 					{ 
 						int   temp=array[y]; 
 						array[y]=array[y+1]; 
 						array[y+1]=temp; 
 					} 
 				} 
 			} 
 			for(y=0;y <3;y++) 
 			{ 
 				Console.Write(array[y]+ "\n "); 
 			} 
 		} 
 	} 
 } 
 这个是冒泡吗?
------解决方案--------------------改变数组中项的顺序,最好写一个方法。 
 这个样子有点乱呀