add initial configuration and update author information in header files

This commit is contained in:
MarcUs7i 2025-01-10 22:59:38 +01:00
parent 5beea32eee
commit 0178845516
20 changed files with 850 additions and 823 deletions

3
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"C_Cpp.default.compilerPath": "/usr/bin/gcc"
}

View file

@ -2,7 +2,7 @@
* HTBLA-Leonding * HTBLA-Leonding
* --------------------------------------------------------- * ---------------------------------------------------------
* Title: Count Character Occurrence * Title: Count Character Occurrence
* Author: */ your name /* * Author: Marc Tismonar
* ---------------------------------------------------------- * ----------------------------------------------------------
* Description: * Description:
* Recursive and iterative implementation of an algorithm that * Recursive and iterative implementation of an algorithm that
@ -10,6 +10,8 @@
* ---------------------------------------------------------- * ----------------------------------------------------------
*/ */
#include "count_char.h"
/* /*
Instructions: Instructions:
@ -21,5 +23,11 @@ until the end of the string ('\0').
*/ */
// TODO: the recursive implementation // TODO: the recursive implementation
int count_char_recursive(const char* str, char c) {
return 0;
}
// TODO: the iterative implementation // TODO: the iterative implementation
int count_char_iterative(const char* str, char c) {
return 0;
}

View file

@ -2,7 +2,7 @@
* HTBLA-Leonding * HTBLA-Leonding
* --------------------------------------------------------- * ---------------------------------------------------------
* Title: Count Character Occurrence * Title: Count Character Occurrence
* Author: */ your name /* * Author: Marc Tismonar
* ---------------------------------------------------------- * ----------------------------------------------------------
* Description: * Description:
* Recursive and iterative implementation of an algorithm that * Recursive and iterative implementation of an algorithm that

View file

@ -2,7 +2,7 @@
* HTBLA-Leonding / Class: <your class> * HTBLA-Leonding / Class: <your class>
* --------------------------------------------------------- * ---------------------------------------------------------
* Title: Reverse String * Title: Reverse String
* Author: */ your name /* * Author: Marc Tismonar
* ---------------------------------------------------------- * ----------------------------------------------------------
* Description: * Description:
* Recursive and iterative implementation of an algorithm that * Recursive and iterative implementation of an algorithm that
@ -10,6 +10,8 @@
* ---------------------------------------------------------- * ----------------------------------------------------------
*/ */
#include "reverse_string.h"
/* /*
Instructions: Instructions:
@ -21,5 +23,11 @@ Note that strings that are stored on heap or stack are provided - they can be di
*/ */
// TODO: the recursive implementation // TODO: the recursive implementation
void reverse_string_recursive(char* str, int start, int end) {
return;
}
// TODO: the iterative implementation // TODO: the iterative implementation
void reverse_string_iterative(char* str, int start, int end) {
return;
}

View file

@ -2,7 +2,7 @@
* HTBLA-Leonding * HTBLA-Leonding
* --------------------------------------------------------- * ---------------------------------------------------------
* Title: Reverse String * Title: Reverse String
* Author: */ your name /* * Author: Marc Tismonar
* ---------------------------------------------------------- * ----------------------------------------------------------
* Description: * Description:
* Recursive and iterative implementation of an algorithm that * Recursive and iterative implementation of an algorithm that

View file

@ -2,7 +2,7 @@
* HTBLA-Leonding / Class: <your class> * HTBLA-Leonding / Class: <your class>
* --------------------------------------------------------- * ---------------------------------------------------------
* Title: Sum of Digits * Title: Sum of Digits
* Author: */ your name /* * Author: Marc Tismonar
* ---------------------------------------------------------- * ----------------------------------------------------------
* Description: * Description:
* Recursive and iterative implementation of an algorithm that calculates * Recursive and iterative implementation of an algorithm that calculates
@ -10,6 +10,8 @@
* ---------------------------------------------------------- * ----------------------------------------------------------
*/ */
#include "sum_of_digits.h"
/* /*
Instructions: Instructions:
@ -19,5 +21,11 @@ The sum of digits can be calculated as n mod 10 + sum of digits of n / 10 as lon
*/ */
// TODO: the recursive implementation // TODO: the recursive implementation
int sum_of_digits_recursive(int n) {
return 0;
}
// TODO: the iterative implementation // TODO: the iterative implementation
int sum_of_digits_iterative(int n) {
return 0;
}

View file

@ -2,7 +2,7 @@
* HTBLA-Leonding * HTBLA-Leonding
* --------------------------------------------------------- * ---------------------------------------------------------
* Title: Sum of Digits * Title: Sum of Digits
* Author: */ your name /* * Author: Marc Tismonar
* ---------------------------------------------------------- * ----------------------------------------------------------
* Description: * Description:
* Recursive and iterative implementation of an algorithm that calculates * Recursive and iterative implementation of an algorithm that calculates