main #2

Merged
muellermo100295 merged 6 commits from main into MM_Branch 2025-12-11 11:23:14 +00:00
16 changed files with 72 additions and 5 deletions
Showing only changes of commit 5072f82928 - Show all commits
+40
View File
@@ -0,0 +1,40 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug test_stack",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/test_stack.exe",
"cwd": "${workspaceFolder}",
"MIMode": "gdb",
"miDebuggerPath": "C:/ProgramData/mingw64/mingw64/bin/gdb.exe",
"preLaunchTask": "Build via Makefile"
},
{
"name": "Debug test_numbers",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/test_numbers.exe",
"cwd": "${workspaceFolder}",
"MIMode": "gdb",
"miDebuggerPath": "C:/ProgramData/mingw64/mingw64/bin/gdb.exe",
"preLaunchTask": "Build via Makefile"
},
{
"name": "Debug test_bintree",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/test_bintree.exe",
"cwd": "${workspaceFolder}",
"MIMode": "gdb",
"miDebuggerPath": "C:/ProgramData/mingw64/mingw64/bin/gdb.exe",
"preLaunchTask": "Build via Makefile"
}
]
}
+27
View File
@@ -0,0 +1,27 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build via Makefile",
"type": "shell",
"command": "mingw32-make",
"args": ["${input:target}"],
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$gcc"
}
],
"inputs": [
{
"id": "target",
"type": "pickString",
"description": "Welches Makefile-Target soll gebaut werden?",
"options": ["test_stack", "test_numbers", "test_bintree", "doble", "unitTests"]
}
]
}
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -1,10 +1,10 @@
Player1;19887
Lena;19811
Lena;19702
Player1;19578
player_name;9981
Lena;9980
Lena;9978
Lena;9978
Lena;9976
Lena;9975
Lena;9971
Lena;9965
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+3 -3
View File
@@ -1,15 +1,15 @@
#include <stdlib.h>
#include "stack.h"
// Pushes data as pointer onto the stack.
// Push Daten auf den Stack legen.
StackNode *push(StackNode *stack, void *data)
{
StackNode *node = (StackNode *)malloc(sizeof(StackNode));
if(node == NULL)
return stack; // allocation failed -> return unchanged stack
node->data = data;
node->next = stack;
node->data = data; // Set the data for the new node
node->next = stack; // New node points to the previous top of the stack
return node;
}
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.