assignment03 comments
This commit is contained in:
2 files changed
+21
No files matched your search
@@ -8,6 +8,17 @@
|
|||||||
#define INSERTION_SORT 1
|
#define INSERTION_SORT 1
|
||||||
#define SELECTION_SORT 2
|
#define SELECTION_SORT 2
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Course: COMP 2510
|
||||||
|
* Assignment: Assignment 3
|
||||||
|
* Name: Your Full Name
|
||||||
|
* Student ID: 12345678
|
||||||
|
* Date: 2025-09-18
|
||||||
|
* Description: demo insertion sort & selection sort
|
||||||
|
* by sorting an array of integers input
|
||||||
|
* by the user.
|
||||||
|
*/
|
||||||
|
|
||||||
void insertionSort(int *arr, size_t size)
|
void insertionSort(int *arr, size_t size)
|
||||||
{
|
{
|
||||||
if (size < MIN_SIZE)
|
if (size < MIN_SIZE)
|
||||||
|
|||||||
@@ -8,6 +8,16 @@
|
|||||||
#define STRING 3
|
#define STRING 3
|
||||||
#define BUFFER_SIZE 256
|
#define BUFFER_SIZE 256
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Course: COMP 2510
|
||||||
|
* Assignment: Assignment 3
|
||||||
|
* Name: Braeden Sowinski
|
||||||
|
* Student ID: A01385066
|
||||||
|
* Date: 2025-11-22
|
||||||
|
* Description: Demo a generic swap function to swap
|
||||||
|
* void pointers based on a user input.
|
||||||
|
*/
|
||||||
|
|
||||||
void swap(void *a, void *b, size_t size)
|
void swap(void *a, void *b, size_t size)
|
||||||
{
|
{
|
||||||
void *tmp;
|
void *tmp;
|
||||||
|
|||||||
Reference in new issue
Block a user