摘要: 输入的两个数要求为正。 #include<stdio.h> #include<string> #include<string.h> #include<iostream> #include<cmath> using namespace std; int compare(string str1,stri 阅读全文
posted @ 2016-11-01 23:28 zzzzzzzzhu 阅读(175) 评论(0) 推荐(0) 编辑
摘要: void bubble_sort(int arr[],int n)//冒泡排序接口 { for(int i = 0;i < n;i++) { int flag = 0; for(int j = 0;j < n-i-1;j++) { if(arr[j] > arr[j+1]) { swap(arr[j 阅读全文
posted @ 2016-11-01 20:38 zzzzzzzzhu 阅读(175) 评论(0) 推荐(0) 编辑