?? 7_4.cpp
字號:
//7_4
void Swap(int& a, int& b){ int temp=a; a=b; b=temp; }
void Bsort(int a[], int n)
{
bool dontLoopAgain=false;
while(dontLoopAgain=!dontLoopAgain)
for(int i=0,pass=--n; i<n; i++)
if(a[i]>a[i+1]){
dontLoopAgain=false;
Swap(a[i],a[i+1]);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -