2014年12月22日

摘要: #include#include#include#includeusing namespace::std;typedef struct {double xx,yy,zz;}poi;void swap(int *x, int *y){ int temp; temp=*x; *x=*y; *y=tem... 阅读全文

posted @ 2014-12-22 17:55 孤路 阅读(112) 评论(0) 推荐(0) 编辑

2014年12月13日

摘要: for(i=0;ia[k]) swap(&a[i],&a[k]); } 阅读全文

posted @ 2014-12-13 18:00 孤路 阅读(196) 评论(0) 推荐(0) 编辑

2014年12月8日

摘要: void swap(int *x, int *y){ int temp; temp=*x; *x=*y; *y=temp;}void mpao(int*a,int n){ int i,j; for(i=0;i0&&a[j]>a[j-1];j--) swap(a[j],a[k]); } } 阅读全文

posted @ 2014-12-08 18:09 孤路 阅读(95) 评论(0) 推荐(0) 编辑

摘要: #includeusing namespace::std;void swap(int *x, int *y){ int temp; temp=*x; *x=*y; *y=temp;}void mpao(int* a,int n){int x,y; for(x=1;x=0&&a[y]>n;for(;n... 阅读全文

posted @ 2014-12-08 18:08 孤路 阅读(109) 评论(0) 推荐(0) 编辑

2014年12月1日

摘要: #include#includeusing namespace std;typedef struct{ int x; int y;}poi;poi k[300];int e=0;void searc(poi *a,poi *b){ int q=0,w=0; while(a[q].y>0) { ... 阅读全文

posted @ 2014-12-01 18:01 孤路 阅读(110) 评论(0) 推荐(0) 编辑