Skip to content

Commit 1f6a09c

Browse files
committed
Rename Project Folder according to Camel-Case
1 parent 64e2b7a commit 1f6a09c

83 files changed

Lines changed: 9 additions & 65 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../include/bubblesort.h"
1+
#include "../include/BubbleSort.h"
22
int main()
33
{
44
int a[] = {5, 10, 3, 7, 9, 6, 8, 1, 4, 2};
@@ -9,15 +9,16 @@ int main()
99
{
1010
printf("%d\n", a[i]);
1111
}
12-
bubblesort(a, size);
12+
BubbleSort(a, size);
1313
printf("After sorting:\n");
1414
for (i = 0; i < size; i++)
1515
{
1616
printf("%d\n", a[i]);
1717
}
1818
return 0;
1919
}
20-
void bubblesort(int array[], int size)
20+
// sort array[] and save to array[]
21+
void BubbleSort(int *array, int size)
2122
{
2223
int i, j, temp;
2324
for (i = 0; i < size; i++)
@@ -33,3 +34,8 @@ void bubblesort(int array[], int size)
3334
}
3435
}
3536
}
37+
void PrintIntArray(int *array, int length, char *interval) {
38+
for (int i = 0; i <= length - 1; i++) {
39+
printf("%d%s", *(array + i), interval);
40+
}
41+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)