day8 1 and 2 done + refactoring

This commit is contained in:
2024-12-15 14:56:10 +01:00
parent f830923804
commit d8d2bcc379
7 changed files with 212 additions and 21 deletions
+3 -3
View File
@@ -31,7 +31,7 @@ bool AreWeInBounds(int x, int y, std::vector<std::vector<char>> &TwoDCharVec) {
return true;
}
int conditional_operation(int a, int b, char op) {
int condop(int a, int b, char op) {
switch (op) {
case '+':
return a + b;
@@ -48,8 +48,8 @@ int conditional_operation(int a, int b, char op) {
}
}
unsigned long long conditional_operation_ull(unsigned long long a,
unsigned long long b, char op) {
unsigned long long condop_ull(unsigned long long a, unsigned long long b,
char op) {
switch (op) {
case '+':
return a + b;