提交 382b2ba3 创建 作者: 宋海霞's avatar 宋海霞

modify

上级 8374c12f
...@@ -8,33 +8,22 @@ ...@@ -8,33 +8,22 @@
#include <stdio.h> #include <stdio.h>
// //
// Other header files are included here // Other header files are included here
// //
// //
// Define the data structure here // Define the data structure here
// //
// //
// Declare the function here // Declare the function here
// //
void BubbleSort(int* list, int length); void BubbleSort(int* list, int length);
// //
// Declare global variables here // Declare global variables here
// //
#endif /* BUBBLESORT_H_ */ #endif /* BUBBLESORT_H_ */
#include "BubbleSort.h" #include "BubbleSort.h"
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
int i; int i;
...@@ -19,8 +18,10 @@ int main(int argc, char* argv[]) ...@@ -19,8 +18,10 @@ int main(int argc, char* argv[])
// //
// Output the sorted result // Output the sorted result
// //
for(i=0; i<length; i++) for (i=0; i<length; i++)
{
printf("%d ", list[i]); printf("%d ", list[i]);
}
return 0; return 0;
} }
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论