#include <bits/stdc++.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
int count=0;
int n;
cin>>n;
int num[n];
for(int i=0;i<n;i++)
{
cin>>num[i];
}
label:
for(int i=0;i<n-1;i++)
{
for(int j=i+1;j<n;j++)
{
if(num[i]>num[j])
{
swap(num[i],num[j]);
}
else
{
count++;
}
if(count==n-1)
{
break label;
}
}
}
for(int i=0;i<n;i++)
{
cout<<num[i]<<" ";
}
return 0;
}
break label怎么用,求解?