#include
#include
using namespace std;
int main()
{
int qq[100], number, ch=0, tmp;
cout
while (ch == 0)
{ cin >> number;
ch = 1;
if( number0)
{ for ( int j=0 ; j
}
}
else
{ cout ch = 0;
}
}
ch = 0;
int count=number-1;
while ( ch==0 )
{ ch = 1;
for ( int j=0 ; j
{ tmp = qq[j];
qq[j] = qq[j+1];
qq[j+1] = tmp;
ch = 0;
}
}
count = count-1;
}
for ( int j=0 ; j
cout }
system("PAUSE");
return 0;
}
- Dec 13 Mon 2010 13:10
bubble
close
全站熱搜
留言列表
禁止留言