标签:style blog http color io for ar div log
#include<stdio.h> int main() { int a[]={3, 2, 1, 7, 8, 10, 4, 5, 6, 9}; int i,j,temp,count=10; for(i=0;i<=9;i++) { temp=a[i]; j=i-1; while(j>=0 && a[j]>temp) { a[j+1]=a[j]; j--; } a[j+1]=temp; } for(i=0;i<=9;i++) printf("%d ",a[i]); }
标签:style blog http color io for ar div log
原文地址:http://www.cnblogs.com/notlate/p/3938256.html